1
0
Fork 0
forked from 0x2620/oxjs

fix menus and dialogs in fullscreen mode

This commit is contained in:
j 2019-02-21 16:10:58 +05:30
commit b8a46dbee4
6 changed files with 8 additions and 5 deletions

View file

@ -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;