Wrap Items in Flickables so scrollbars will work - contents of flickable not showing up rn

This commit is contained in:
Zach Fox 2019-10-03 12:55:02 -07:00
parent 1dd6aebede
commit 0e7dff05fb

View file

@ -58,12 +58,18 @@ Rectangle {
id: tempAvatarPageContainer
visible: true
GridLayout {
id: tempAvatarPageGrid
Flickable {
anchors.fill: parent
anchors.leftMargin: 50
anchors.topMargin: 50
anchors.rightMargin: 100
clip: true
contentWidth: parent.width
contentHeight: childrenRect.height
GridLayout {
id: tempAvatarPageGrid
anchors.fill: parent
columns: landscapeOrientation ? 2 : 1
rows: landscapeOrientation ? 1 : 2
@ -173,6 +179,7 @@ Rectangle {
}
}
}
}
SimplifiedControls.VerticalScrollBar {
parent: tempAvatarPageContainer
@ -184,9 +191,11 @@ Rectangle {
visible: false
anchors.fill: parent
SimplifiedControls.VerticalScrollBar {
parent: tempAvatarPageContainer
}
Flickable {
anchors.fill: parent
clip: true
contentWidth: parent.width
contentHeight: childrenRect.height
HifiStylesUit.RalewayRegular {
id: controlsDescriptionText
@ -296,6 +305,12 @@ Rectangle {
}
}
}
}
SimplifiedControls.VerticalScrollBar {
parent: controlsContainer
}
}
signal sendToScript(var message);