fix(sandbox): make scrollview content height grow with content

This is just temporary until #40 lands, but for now it allows for
the scrollable content to be grow which is needed to make pages
with many components usable.
This commit is contained in:
Pascal Precht 2021-05-21 14:38:47 +02:00
parent 8639e8ccba
commit 2f09179fcf
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,7 @@ StatusWindow {
width: parent.width
anchors.top: tabs.bottom
anchors.bottom: parent.bottom
contentHeight: rootWindow.height * rootWindow.factor
contentHeight: lightThemeBg.height * rootWindow.factor
contentWidth: rootWindow.width * rootWindow.factor
clip: true
@ -79,12 +79,14 @@ StatusWindow {
id: lightThemeBg
width: rootWindow.width
height: parent.height
height: page.height + 64
anchors.topMargin: 32
color: Theme.palette.baseColor5
clip: true
scale: rootWindow.factor
Loader {
id: page
active: true
anchors.centerIn: parent