Fix height of scroll view and make scrollable

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-06 11:16:42 +01:00
parent 5ba8820f18
commit 48e15daf64
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 5 additions and 2 deletions

View file

@ -14,7 +14,7 @@ Button
property var configuration: null property var configuration: null
hoverEnabled: true hoverEnabled: true
height: childrenRect.height height: background.height
background: Rectangle background: Rectangle
{ {

View file

@ -28,7 +28,9 @@ Column
{ {
id: container id: container
width: parent.width width: parent.width
height: Math.min(configurationList.contentHeight, 350 * screenScaleFactor) height: Math.round(Math.min(configurationList.height, 350 * screenScaleFactor))
contentHeight: configurationList.height
clip: true
ButtonGroup ButtonGroup
{ {
@ -41,6 +43,7 @@ Column
spacing: Math.round(UM.Theme.getSize("default_margin").height / 2) spacing: Math.round(UM.Theme.getSize("default_margin").height / 2)
width: container.width width: container.width
contentHeight: childrenRect.height contentHeight: childrenRect.height
height: childrenRect.height
section.property: "modelData.printerType" section.property: "modelData.printerType"
section.criteria: ViewSection.FullString section.criteria: ViewSection.FullString