From efb34ee85ac243e6e17b0dc13e7599e1f290dac9 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. --- ui/StatusQ/sandbox/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/StatusQ/sandbox/main.qml b/ui/StatusQ/sandbox/main.qml index 3470c156d6..fe2fd26ffb 100644 --- a/ui/StatusQ/sandbox/main.qml +++ b/ui/StatusQ/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