Skip to content

Commit e7c2eb4

Browse files
committed
Remove width:100%; from menu-item styles (was there for icon-support, which was dropped); also fixed the nested-menu visual test to position properly in IE6
1 parent 7e79eee commit e7c2eb4

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

tests/visual/menu/nested.html

+10-5
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,16 @@
106106
$("button").click(function(event) {
107107
// TODO required to prevent the click handler below from handling this event
108108
event.stopPropagation();
109-
nestedmenu.nestedmenu("show").position({
110-
my: "left top",
111-
at: "right top",
112-
of: event.pageX > 0 ? event : this
113-
});
109+
nestedmenu.nestedmenu("show")
110+
.css({
111+
top: 0,
112+
left: 0
113+
})
114+
.position({
115+
my: "left top",
116+
at: "right top",
117+
of: this
118+
});
114119
$(document).one("click", function() {
115120
nestedmenu.nestedmenu("hide");
116121
})

themes/base/jquery.ui.autocomplete.css

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
.ui-menu .ui-menu-item {
2121
margin:0;
2222
padding: 0;
23-
width: 100%;
2423
}
2524
.ui-menu .ui-menu-item a {
2625
text-decoration:none;

0 commit comments

Comments
 (0)