bug 22445
This commit is contained in:
parent
84b3e65f30
commit
fd6cd5a288
|
@ -265,8 +265,10 @@ define([
|
||||||
var top = main_geometry.top + Math.floor((parseInt(main_height) - parseInt(win_height)) / 2);
|
var top = main_geometry.top + Math.floor((parseInt(main_height) - parseInt(win_height)) / 2);
|
||||||
var left = Math.floor((parseInt(main_width) - parseInt(win_width)) / 2);
|
var left = Math.floor((parseInt(main_width) - parseInt(win_width)) / 2);
|
||||||
|
|
||||||
this.$window.css('left',left < 0 ? 0 : left);
|
this.$window.css({
|
||||||
this.$window.css('top',top < 0 ? 0 : top);
|
left: left < 0 ? 0 : left,
|
||||||
|
top: top < 0 ? 0 : top
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function _setVisible() {
|
function _setVisible() {
|
||||||
|
@ -367,8 +369,10 @@ define([
|
||||||
top = top + win_height > main_height ? main_height - win_height : top;
|
top = top + win_height > main_height ? main_height - win_height : top;
|
||||||
left = left + win_width > main_width ? main_width - win_width : left;
|
left = left + win_width > main_width ? main_width - win_width : left;
|
||||||
|
|
||||||
this.$window.css('left', left < 0 ? 0 : left);
|
this.$window.css({
|
||||||
this.$window.css('top', top < 0 ? 0 : top);
|
left: left < 0 ? 0 : left,
|
||||||
|
top: top < 0 ? 0 : top
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* window resize functions */
|
/* window resize functions */
|
||||||
|
|
Loading…
Reference in a new issue