]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Get rid of .css(top:0,left:0) workaround, not necessary anymore
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 24 Feb 2011 09:22:50 +0000 (10:22 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 24 Feb 2011 09:22:50 +0000 (10:22 +0100)
tests/visual/menu/drilldown.html
tests/visual/menu/flyoutmenu.html
tests/visual/menu/flyoutmenu.js
tests/visual/menu/menubar.js

index 572c1765b1c85bf8b1831d594bf205bfca20729b..3bf147598a1034a268700cfd94d949f24768b4e6 100644 (file)
@@ -59,8 +59,6 @@
                        
                        _open: function(submenu) {
                                this.active = submenu.show().css({
-                                       top: 0,
-                                       left: 0,
                                        opacity: 0
                                }).position({
                                        my: "left top",
index dc2db8830276adb783a3b469faa8438d38fc63f7..150a2073143d4f92517bde8959c8600c9ec8cbc8 100644 (file)
                        event.stopPropagation();
                        menu.flyoutmenu("show")
                                .focus()
-                               .css({
-                                       top: 0,
-                                       left: 0
-                               })
                                .position({
                                        my: "left top",
                                        at: "right top",
index 2599d105bb1eefbf6b7e88be5851b8d4f66f5264..6fb522680781ff5be6388c48c6b9571c2db16ccd 100644 (file)
@@ -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();
index b660ea0dfc09c29c9ceda940307f6af668cbeeb5..a8f986349f09eafcee8da2f60db4915be400fced 100644 (file)
@@ -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",