diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-24 10:22:50 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-24 10:22:50 +0100 |
commit | ee34b0dabb066c4ec98a8eab824fa19bb9320eaf (patch) | |
tree | ed6dc19f9930e428cc9ec9088aa215def63bce2c /tests | |
parent | d74fb20a28b16d9eaca39ca6b1c74d5777b505c7 (diff) | |
download | jquery-ui-ee34b0dabb066c4ec98a8eab824fa19bb9320eaf.tar.gz jquery-ui-ee34b0dabb066c4ec98a8eab824fa19bb9320eaf.zip |
Menu: Get rid of .css(top:0,left:0) workaround, not necessary anymore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/menu/drilldown.html | 2 | ||||
-rw-r--r-- | tests/visual/menu/flyoutmenu.html | 4 | ||||
-rw-r--r-- | tests/visual/menu/flyoutmenu.js | 5 | ||||
-rw-r--r-- | tests/visual/menu/menubar.js | 6 |
4 files changed, 2 insertions, 15 deletions
diff --git a/tests/visual/menu/drilldown.html b/tests/visual/menu/drilldown.html index 572c1765b..3bf147598 100644 --- a/tests/visual/menu/drilldown.html +++ b/tests/visual/menu/drilldown.html @@ -59,8 +59,6 @@ _open: function(submenu) { this.active = submenu.show().css({ - top: 0, - left: 0, opacity: 0 }).position({ my: "left top", diff --git a/tests/visual/menu/flyoutmenu.html b/tests/visual/menu/flyoutmenu.html index dc2db8830..150a20731 100644 --- a/tests/visual/menu/flyoutmenu.html +++ b/tests/visual/menu/flyoutmenu.html @@ -29,10 +29,6 @@ event.stopPropagation(); menu.flyoutmenu("show") .focus() - .css({ - top: 0, - left: 0 - }) .position({ my: "left top", at: "right top", diff --git a/tests/visual/menu/flyoutmenu.js b/tests/visual/menu/flyoutmenu.js index 2599d105b..6fb522680 100644 --- a/tests/visual/menu/flyoutmenu.js +++ b/tests/visual/menu/flyoutmenu.js @@ -106,10 +106,7 @@ $.widget("ui.flyoutmenu", { : this.options.position ); - submenu.show().css({ - top: 0, - left: 0 - }).position(position); + submenu.show().position(position); }, _select: function(event) { event.stopPropagation(); diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js index b660ea0df..a8f986349 100644 --- a/tests/visual/menu/menubar.js +++ b/tests/visual/menu/menubar.js @@ -55,11 +55,7 @@ $.widget("ui.menubar", { _open: function(event, menu) { this.active && this.active.flyoutmenu("hide"); - this.active = menu.flyoutmenu("show").css({ - position: "absolute", - top: 0, - left: 0 - }).position({ + this.active = menu.flyoutmenu("show").position({ my: "left top", at: "left bottom", offset: "0 -1", |