Fix Bug 39838
This commit is contained in:
parent
f5ea092697
commit
ac3862c851
|
@ -235,6 +235,21 @@ define([
|
||||||
this.$window.css('top',top);
|
this.$window.css('top',top);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _setVisible() {
|
||||||
|
if (window.innerHeight == undefined) {
|
||||||
|
var main_width = document.documentElement.offsetWidth;
|
||||||
|
var main_height = document.documentElement.offsetHeight;
|
||||||
|
} else {
|
||||||
|
main_width = Common.Utils.innerWidth();
|
||||||
|
main_height = Common.Utils.innerHeight();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.getLeft() + this.getWidth() > main_width)
|
||||||
|
this.$window.css('left', main_width - this.getWidth());
|
||||||
|
if (this.getTop() + this.getHeight() > main_height)
|
||||||
|
this.$window.css('top', main_height - this.getHeight());
|
||||||
|
}
|
||||||
|
|
||||||
function _getTransformation(end) {
|
function _getTransformation(end) {
|
||||||
return {
|
return {
|
||||||
'-webkit-transition': '0.3s opacity',
|
'-webkit-transition': '0.3s opacity',
|
||||||
|
@ -653,6 +668,7 @@ define([
|
||||||
} else
|
} else
|
||||||
if (!this.$window.is(':visible')) {
|
if (!this.$window.is(':visible')) {
|
||||||
this.$window.css({opacity: 0});
|
this.$window.css({opacity: 0});
|
||||||
|
_setVisible.call(this);
|
||||||
this.$window.show()
|
this.$window.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue