CURA-4870 Fix binding loop in some components with the height property by changing the vertical alignments

This commit is contained in:
Diego Prado Gesto 2018-03-07 19:40:44 +01:00
parent 867e6388f2
commit 2818ff7f31
3 changed files with 3 additions and 5 deletions

View file

@ -77,7 +77,6 @@ Rectangle
UM.RecolorImage {
id: buildplateIcon
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
width: UM.Theme.getSize("topbar_button_icon").width
height: UM.Theme.getSize("topbar_button_icon").height
sourceSize.width: width
@ -90,7 +89,7 @@ Rectangle
{
id: buildplateLabel
anchors.left: buildplateIcon.right
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenter: buildplateIcon.verticalCenter
anchors.leftMargin: Math.round(UM.Theme.getSize("default_margin").height / 2)
text: configuration.buildplateConfiguration
color: textColor