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

master
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;
background: none !important;
display:none;
top: 30%;
left: 171px;
}
.image-lib {
position: fixed;

View File

@ -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: