mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
for bug 77252
This commit is contained in:
@ -3067,21 +3067,21 @@ define([], function () {
|
||||
btn,
|
||||
btnTop = y,
|
||||
btnWidth = 50,
|
||||
leftSide = x - 42,
|
||||
rightSide = x + width + 7,
|
||||
windowWidth = me._Width || 0;
|
||||
offsetLeft = chartContainer.width() === 40 ? 50 : 42,
|
||||
leftSide = x - offsetLeft,
|
||||
rightSide = x + width + 7;
|
||||
|
||||
if (me.isRtlSheet) {
|
||||
if (leftSide >= 0) {
|
||||
btn = leftSide;
|
||||
} else if (rightSide + btnWidth <= windowWidth) {
|
||||
btn = rightSide;
|
||||
btn = leftSide + 15;
|
||||
} else if (rightSide + btnWidth <= me._Width) {
|
||||
btn = rightSide + 15;
|
||||
} else {
|
||||
chartContainer.hide();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (rightSide + btnWidth <= windowWidth + 18) {
|
||||
if (rightSide + btnWidth <= me._Width + 18) {
|
||||
btn = rightSide;
|
||||
} else if (leftSide >= 0) {
|
||||
btn = leftSide;
|
||||
|
||||
Reference in New Issue
Block a user