root: add width and height properties (helps building mobile layouts)

This commit is contained in:
bordun 2020-09-16 08:48:04 +02:00
parent 4e8c6f9a17
commit ca0be309d9
4 changed files with 7 additions and 2 deletions

View file

@ -34,7 +34,7 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro
}, [
'visible', 'label',
'_geometry', 'left', 'top', 'width', 'height', 'expand',
'_geometry', 'left', 'top', 'expand',
'colorFill', 'colorStroke', 'alphaStroke', 'alphaFillOff',
], {

View file

@ -351,4 +351,6 @@ osc-panel-content {
#osc-container {
background: var(--color-background);
background: black;
overflow: auto;
}

View file

@ -226,6 +226,8 @@
bottom: 0;
}
margin: auto;
}
.root-container.editing {