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

@ -826,8 +826,9 @@ Ox.Menu = function(options, self) {
if (!that.is(':hidden')) {
return;
}
that.parent().length == 0 && that.appendTo(Ox.$body);
that.appendTo(Ox.Fullscreen.element ? Ox.Fullscreen.element : Ox.$body);
that.css({
position: 'fixed',
left: '-1000px',
top: '-1000px'
}).show();