WIP: Fix binding loops

This commit is contained in:
Lipu Fei 2019-03-11 08:33:30 +01:00
parent 940a833e73
commit e821179d7f

View File

@ -15,7 +15,7 @@ Item
id: base id: base
implicitWidth: 200 implicitWidth: 200
height: header.contentShown ? childrenRect.height : header.height height: header.contentShown ? (header.height + contentRectangle.height) : header.height
property var contentComponent: null property var contentComponent: null
@ -47,7 +47,7 @@ Item
anchors.top: header.bottom anchors.top: header.bottom
anchors.left: header.left anchors.left: header.left
anchors.right: header.right anchors.right: header.right
height: childrenRect.height height: contentLoader.height + 2
border.width: UM.Theme.getSize("default_lining").width border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("lining") border.color: UM.Theme.getColor("lining")
@ -62,7 +62,6 @@ Item
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: childrenRect.height + 2
anchors.margins: 1 anchors.margins: 1
sourceComponent: base.contentComponent != null ? base.contentComponent : emptyComponent sourceComponent: base.contentComponent != null ? base.contentComponent : emptyComponent
} }