forked from 0x2620/oxjs
fix menus and dialogs in fullscreen mode
This commit is contained in:
parent
28cc45485a
commit
b8a46dbee4
6 changed files with 8 additions and 5 deletions
|
|
@ -70,7 +70,7 @@ Ox.Dialog = function(options, self) {
|
|||
}
|
||||
})
|
||||
.hide()
|
||||
.appendTo(Ox.$body);
|
||||
.appendTo(Ox.Fullscreen.element ? Ox.Fullscreen.element : Ox.$body);
|
||||
|
||||
self.hasButtons = !!self.options.buttons.length;
|
||||
self.barsHeight = 24 + 24 * self.hasButtons;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ Ox.Layer = function(options, self) {
|
|||
if (self.options.type == 'dialog') {
|
||||
Ox.$window.on({mouseup: mouseup});
|
||||
}
|
||||
that.appendTo(Ox.$body);
|
||||
that.appendTo(Ox.Fullscreen.element ? Ox.Fullscreen.element : Ox.$body);
|
||||
return that;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ Ox.Tooltip = function(options, self) {
|
|||
self.y = y;
|
||||
}
|
||||
$('.OxTooltip').detach(); // fixme: don't use DOM
|
||||
that.appendTo(Ox.$body);
|
||||
that.appendTo(Ox.Fullscreen.element ? Ox.Fullscreen.element : Ox.$body);
|
||||
width = that.width();
|
||||
height = that.height();
|
||||
left = Ox.limit(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue