modal/menu: position issues in scrolled containers
This commit is contained in:
parent
a48e0c173f
commit
389badb113
4 changed files with 19 additions and 4 deletions
|
|
@ -291,8 +291,7 @@
|
|||
position: fixed;
|
||||
z-index: 999999999;
|
||||
|
||||
margin-left: calc(-1 * var(--parent-scroll-x));
|
||||
margin-top: calc(-1 * var(--parent-scroll-y));
|
||||
transform: translate(calc(-1 * var(--parent-scroll-x)), calc(-1 * var(--parent-scroll-y)));
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
|
|
|
|||
|
|
@ -566,6 +566,8 @@
|
|||
|
||||
}
|
||||
|
||||
--parent-scroll-x:0;
|
||||
--parent-scroll-y:0;
|
||||
&.relative {
|
||||
> .popup {
|
||||
left: auto;
|
||||
|
|
@ -574,8 +576,8 @@
|
|||
bottom: auto;
|
||||
width: var(--width, 100%);
|
||||
height: var(--height, 100%);
|
||||
margin-top: calc(-1 * var(--widget-spacing));
|
||||
margin-left: calc(-1 * var(--widget-spacing));
|
||||
margin-top: calc(-1 * var(--widget-spacing) - var(--parent-scroll-y));
|
||||
margin-left: calc(-1 * var(--widget-spacing) - var(--parent-scroll-x));
|
||||
padding: var(--widget-spacing);
|
||||
align-items:flex-start;
|
||||
justify-content: flex-start;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue