Commit 594b184b authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.PropertyEditor: Fixing size of ScrollArea

When evaluating Component.onCompleted the childrenRect.height
was not properly set, yet.

Instead we use onChildRectHeightChanged.

Change-Id: I68f395555fbfccccea35fab4387dcc23ca7f1a92
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 13dad5af
......@@ -161,12 +161,14 @@ Rectangle {
id: tabView
height: Math.max(layoutSectionHeight, specficsHeight)
property int layoutSectionHeight
property int layoutSectionHeight: 400
property int specficsOneHeight: 0
property int specficsTwoHeight: 0
property int specficsHeight: Math.max(specficsOneHeight, specficsTwoHeight)
property int extraHeight: 40
Tab {
title: backendValues.className.value
......@@ -189,7 +191,7 @@ Rectangle {
}
onLoaded: {
tabView.specficsTwoHeight = specificsTwo.item.height + 40
tabView.specficsTwoHeight = specificsTwo.item.height + tabView.extraHeight
}
}
......@@ -201,7 +203,7 @@ Rectangle {
source: specificsUrl;
onLoaded: {
tabView.specficsOneHeight = specificsOne.item.height + 40
tabView.specficsOneHeight = specificsOne.item.height + tabView.extraHeight
}
}
}
......@@ -214,9 +216,9 @@ Rectangle {
anchors.right: parent.right
LayoutSection {
Component.onCompleted: {
tabView.layoutSectionHeight = childrenRect.height
property int childRectHeight: childrenRect.height
onChildRectHeightChanged: {
tabView.layoutSectionHeight = childRectHeight + tabView.extraHeight
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment