#612 Shape popup menu position problem and Menu popup position issue

This commit is contained in:
agriyadev5
2021-08-17 18:20:28 +05:30
parent 95bcdc0205
commit 6996f837f0
2 changed files with 5 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ template.innerHTML = `
margin-left: 34px; margin-left: 34px;
background: none !important; background: none !important;
display:none; display:none;
top: 30%;
left: 171px;
} }
.image-lib { .image-lib {
position: fixed; position: fixed;

View File

@@ -262,6 +262,9 @@ export class FlyingButton extends HTMLElement {
this.removeAttribute('opened'); this.removeAttribute('opened');
} else { } else {
this.setAttribute('opened', 'opened'); 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; break;
default: default: