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')
}
}