From 6996f837f0dd8d77b8431e962c53eda4d3d748e5 Mon Sep 17 00:00:00 2001 From: agriyadev5 Date: Tue, 17 Aug 2021 18:20:28 +0530 Subject: [PATCH] #612 Shape popup menu position problem and Menu popup position issue --- src/editor/components/seExplorerButton.js | 2 ++ src/editor/components/seFlyingButton.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/editor/components/seExplorerButton.js b/src/editor/components/seExplorerButton.js index 111ccca5..dee91b25 100644 --- a/src/editor/components/seExplorerButton.js +++ b/src/editor/components/seExplorerButton.js @@ -52,6 +52,8 @@ template.innerHTML = ` margin-left: 34px; background: none !important; display:none; + top: 30%; + left: 171px; } .image-lib { position: fixed; diff --git a/src/editor/components/seFlyingButton.js b/src/editor/components/seFlyingButton.js index 51298a3a..ddcc957b 100644 --- a/src/editor/components/seFlyingButton.js +++ b/src/editor/components/seFlyingButton.js @@ -262,6 +262,9 @@ export class FlyingButton extends HTMLElement { this.removeAttribute('opened'); } else { this.setAttribute('opened', 'opened'); + // In case menu scroll on top or bottom position based popup position set + const rect = this.getBoundingClientRect(); + this.$menu.style.top = rect.top + "px"; } break; default: