diff --git a/src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js b/src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js index 2e4bd54..044d748 100644 --- a/src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js +++ b/src/main/resources/com/finebi/plugin/web/plugin.screen_adaptive.js @@ -311,7 +311,7 @@ this.popupView.element[0].style.left = parseInt(pBounds.left) + "px"; }else if (parseInt(cBounds.top) >= parseInt(pBounds.top) && parseInt(cBounds.left) < parseInt(pBounds.left)) { this.popupView.element[0].style.top = parseInt(pBounds.bottom) + "px"; - this.popupView.element[0].style.left = parseInt(Math.min(pBounds.left, body.clientWidth - cBounds.width)) - transformX + "px"; + this.popupView.element[0].style.left = parseInt(Math.min(pBounds.left, body.clientWidth - cBounds.width)) + "px"; } else { this.popupView.element[0].style.top = parseInt(pBounds.bottom) + "px"; this.popupView.element[0].style.left = parseInt(cBounds.left) * scale + "px"; diff --git a/src/main/resources/com/finebi/plugin/web/scripts/entry.js b/src/main/resources/com/finebi/plugin/web/scripts/entry.js index 2e4bd54..044d748 100644 --- a/src/main/resources/com/finebi/plugin/web/scripts/entry.js +++ b/src/main/resources/com/finebi/plugin/web/scripts/entry.js @@ -311,7 +311,7 @@ this.popupView.element[0].style.left = parseInt(pBounds.left) + "px"; }else if (parseInt(cBounds.top) >= parseInt(pBounds.top) && parseInt(cBounds.left) < parseInt(pBounds.left)) { this.popupView.element[0].style.top = parseInt(pBounds.bottom) + "px"; - this.popupView.element[0].style.left = parseInt(Math.min(pBounds.left, body.clientWidth - cBounds.width)) - transformX + "px"; + this.popupView.element[0].style.left = parseInt(Math.min(pBounds.left, body.clientWidth - cBounds.width)) + "px"; } else { this.popupView.element[0].style.top = parseInt(pBounds.bottom) + "px"; this.popupView.element[0].style.left = parseInt(cBounds.left) * scale + "px";