From b03132d69e9f98187fd2e77b56aaab449bfdded5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 26 May 2021 19:29:41 +0300 Subject: [PATCH] Fix Bug 50498 --- apps/common/main/lib/component/SynchronizeTip.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/main/lib/component/SynchronizeTip.js b/apps/common/main/lib/component/SynchronizeTip.js index b048d94e3..139c00ae0 100644 --- a/apps/common/main/lib/component/SynchronizeTip.js +++ b/apps/common/main/lib/component/SynchronizeTip.js @@ -128,6 +128,9 @@ define([ bottom = Common.Utils.innerHeight() - showxy.top - this.target.height()/2; } else if (pos == 'bottom') { top = showxy.top + this.target.height()/2; + var height = this.cmpEl.height(); + if (top+height>Common.Utils.innerHeight()) + top = Common.Utils.innerHeight() - height - 10; } else if (pos == 'left') { right = Common.Utils.innerWidth() - showxy.left - this.target.width()/2; } else if (pos == 'right') {