]> source.dussan.org Git - jquery-ui.git/commitdiff
Remove width:100%; from menu-item styles (was there for icon-support, which was dropp...
authorjzaefferer <joern.zaefferer@gmail.com>
Mon, 22 Mar 2010 20:44:32 +0000 (21:44 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Mon, 22 Mar 2010 20:44:32 +0000 (21:44 +0100)
tests/visual/menu/nested.html
themes/base/jquery.ui.autocomplete.css

index a332e24405c3607f9111a9a474f00f9dbb782545..96a0379d37eb2e5f1d3a3366217a93778f664a36 100644 (file)
                $("button").click(function(event) {
                        // TODO required to prevent the click handler below from handling this event
                        event.stopPropagation();
-                       nestedmenu.nestedmenu("show").position({
-                               my: "left top",
-                               at: "right top",
-                               of: event.pageX > 0 ? event : this
-                       });
+                       nestedmenu.nestedmenu("show")
+                               .css({
+                                       top: 0,
+                                       left: 0
+                               })
+                               .position({
+                                       my: "left top",
+                                       at: "right top",
+                                       of: this
+                               });
                        $(document).one("click", function() {
                                nestedmenu.nestedmenu("hide");
                        })
index bdd41e1b7ac59efd0e9534728ca4f8d77409a513..1263f935d67285ff0d83644ac1624aa3087c4d7b 100644 (file)
@@ -20,7 +20,6 @@
 .ui-menu .ui-menu-item {
        margin:0;
        padding: 0;
-       width: 100%;
 }
 .ui-menu .ui-menu-item a {
        text-decoration:none;