Merge pull request #1346 from ONLYOFFICE/fix/bugfix

Fix Bug 50498
This commit is contained in:
Julia Radzhabova 2021-11-24 00:00:38 +03:00 committed by GitHub
commit 82d14abd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -154,8 +154,14 @@ define([
}
top = (top!==undefined) ? (top + 'px') : 'auto';
bottom = (bottom!==undefined) ? (bottom + 'px') : 'auto';
left = (left!==undefined) ? (left + 'px') : 'auto';
right = (right!==undefined) ? (right + 'px') : 'auto';
if (left!==undefined) {
var width = this.cmpEl.width();
if (left+width>Common.Utils.innerWidth())
left = Common.Utils.innerWidth() - width - 10;
left = (left + 'px');
} else
left = 'auto';
this.cmpEl.css({top : top, left: left, right: right, bottom: bottom});
}
},

View file

@ -1,5 +1,5 @@
.synch-tip-root {
position: absolute;
position: fixed;
z-index: @zindex-navbar + 2;
@tip-width: 300px;