#612 Shape popup menu position problem and Menu popup position issue
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user