From 2f09179fcf8c504b223148786c789b7286fab89c Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 21 May 2021 14:38:47 +0200 Subject: [PATCH] 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. --- sandbox/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sandbox/main.qml b/sandbox/main.qml index 3470c156..fe2fd26f 100644 --- a/sandbox/main.qml +++ b/sandbox/main.qml @@ -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