mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Get rid of .css(top:0,left:0) workaround, not necessary anymore
This commit is contained in:
parent
d74fb20a28
commit
ee34b0dabb
@ -59,8 +59,6 @@
|
||||
|
||||
_open: function(submenu) {
|
||||
this.active = submenu.show().css({
|
||||
top: 0,
|
||||
left: 0,
|
||||
opacity: 0
|
||||
}).position({
|
||||
my: "left top",
|
||||
|
@ -29,10 +29,6 @@
|
||||
event.stopPropagation();
|
||||
menu.flyoutmenu("show")
|
||||
.focus()
|
||||
.css({
|
||||
top: 0,
|
||||
left: 0
|
||||
})
|
||||
.position({
|
||||
my: "left top",
|
||||
at: "right top",
|
||||
|
@ -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();
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user