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:
parent
8639e8ccba
commit
2f09179fcf
|
@ -70,7 +70,7 @@ StatusWindow {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: tabs.bottom
|
anchors.top: tabs.bottom
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
contentHeight: rootWindow.height * rootWindow.factor
|
contentHeight: lightThemeBg.height * rootWindow.factor
|
||||||
contentWidth: rootWindow.width * rootWindow.factor
|
contentWidth: rootWindow.width * rootWindow.factor
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
@ -79,12 +79,14 @@ StatusWindow {
|
||||||
id: lightThemeBg
|
id: lightThemeBg
|
||||||
|
|
||||||
width: rootWindow.width
|
width: rootWindow.width
|
||||||
height: parent.height
|
height: page.height + 64
|
||||||
|
anchors.topMargin: 32
|
||||||
color: Theme.palette.baseColor5
|
color: Theme.palette.baseColor5
|
||||||
clip: true
|
clip: true
|
||||||
scale: rootWindow.factor
|
scale: rootWindow.factor
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
id: page
|
||||||
active: true
|
active: true
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue