Fix binding loop errors

This commit is contained in:
fieldOfView 2018-05-02 17:20:15 +02:00
parent 00875f0330
commit 132a1a1951
2 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,7 @@ Item
id: tile id: tile
property bool installed: toolbox.isInstalled(model.id) property bool installed: toolbox.isInstalled(model.id)
width: detailList.width - UM.Theme.getSize("wide_margin").width width: detailList.width - UM.Theme.getSize("wide_margin").width
height: Math.max(UM.Theme.getSize("toolbox_detail_tile").height, childrenRect.height + UM.Theme.getSize("default_margin").height) height: normalData.height + supportedConfigsChart.height + 3 * UM.Theme.getSize("default_margin").height
Item Item
{ {
id: normalData id: normalData

View file

@ -9,7 +9,7 @@ import UM 1.1 as UM
Item Item
{ {
width: UM.Theme.getSize("toolbox_thumbnail_large").width width: UM.Theme.getSize("toolbox_thumbnail_large").width
height: childrenRect.height height: thumbnail.height + packageName.height
Rectangle Rectangle
{ {
id: highlight id: highlight
@ -44,10 +44,11 @@ Item
} }
Label Label
{ {
id: packageName
text: model.name text: model.name
anchors anchors
{ {
bottom: parent.bottom top: thumbnail.bottom
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter
} }
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter