fix scroll height of property editor

Fixes: QDS-2013
Change-Id: I43c3e6507f7f2052a86b0ccc485bd520c4dbabac
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Unseon Ryu
2020-05-04 23:10:03 +09:00
committed by Thomas Hartmann
parent 369b020b4b
commit a2cedf76f2

View File

@@ -325,13 +325,11 @@ Rectangle {
frameVisible: false
id: tabView
height: Math.max(layoutSectionHeight, specficsHeight)
height: Math.max(layoutSectionHeight, specficsHeight, advancedHeight) + extraHeight
property int layoutSectionHeight: 400
property int specficsOneHeight: 0
property int specficsTwoHeight: 0
property int specficsHeight: Math.max(specficsOneHeight, specficsTwoHeight)
property int advancedHeight: 0
property int layoutSectionHeight: 0
property int specficsHeight: 0
property int extraHeight: 40
@@ -341,6 +339,9 @@ Rectangle {
component: Column {
anchors.left: parent.left
anchors.right: parent.right
onImplicitHeightChanged: tabView.specficsHeight = implicitHeight
Loader {
anchors.left: parent.left
anchors.right: parent.right
@@ -355,13 +356,6 @@ Rectangle {
active = false
active = true
}
property int loaderHeight: specificsTwo.item.height + tabView.extraHeight
onLoaderHeightChanged: tabView.specficsTwoHeight = loaderHeight
onLoaded: {
tabView.specficsTwoHeight = loaderHeight
}
}
Loader {
@@ -387,11 +381,9 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
onImplicitHeightChanged: tabView.layoutSectionHeight = implicitHeight
LayoutSection {
property int childRectHeight: childrenRect.height
onChildRectHeightChanged: {
tabView.layoutSectionHeight = childRectHeight + tabView.extraHeight
}
}
MarginSection {
@@ -720,6 +712,9 @@ Rectangle {
component: Column {
anchors.left: parent.left
anchors.right: parent.right
onImplicitHeightChanged: tabView.advancedHeight = implicitHeight
AdvancedSection {
}
LayerSection {