root: missing vertical scrollbar when root's height overflows the workspace

This commit is contained in:
bordun 2020-11-16 18:47:44 +01:00
parent 6bc14d6cd5
commit 8381ca7531
3 changed files with 17 additions and 5 deletions

View file

@ -54,6 +54,15 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro
}
setContainerStyles(styles) {
super.setContainerStyles(styles)
this.container.classList.toggle('auto-height', this.getProp('height') === 'auto')
}
}

View file

@ -211,11 +211,13 @@
height: 100%;
// optimize layout recalc
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
&.auto-height {
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
}
> inner {
margin: var(--widget-spacing);