#612 Shape popup menu position problem and Menu popup position issue
parent
95bcdc0205
commit
6996f837f0
|
@ -52,6 +52,8 @@ template.innerHTML = `
|
|||
margin-left: 34px;
|
||||
background: none !important;
|
||||
display:none;
|
||||
top: 30%;
|
||||
left: 171px;
|
||||
}
|
||||
.image-lib {
|
||||
position: fixed;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue