mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 12:39:06 +08:00
WIP: Fix binding loops
This commit is contained in:
parent
940a833e73
commit
e821179d7f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user