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

@ -18,6 +18,7 @@ As of this version, packages except the `node` package are bundled with a midi b
- osc listeners not resolving "auto" address
- `ELECTRON_RUN_AS_NODE` headless mode not working without `--no-gui` option
- ios: clone widget not laid out properly in horizontal panels
- missing vertical scrollbar when root's height overflows the workspace
- ui
- add console bottom panel with a simple script interpreter

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);