Align the additional components to the right of the job specs

The model checker now shows centered
This commit is contained in:
Diego Prado Gesto 2018-12-06 09:25:31 +01:00
parent c757bf128e
commit b0c3a4e17a
2 changed files with 18 additions and 15 deletions

View file

@ -108,19 +108,11 @@ Item
}
}
Row
{
id: additionalComponentsRow
anchors.top: jobNameRow.bottom
anchors.left: parent.left
}
Label
{
id: boundingSpec
anchors.top: jobNameRow.bottom
anchors.left: additionalComponentsRow.right
anchors.leftMargin: additionalComponentsRow.width > 0 ? UM.Theme.getSize("default_margin").width : 0
anchors.left: parent.left
height: UM.Theme.getSize("jobspecs_line").height
verticalAlignment: Text.AlignVCenter
@ -129,6 +121,15 @@ Item
text: CuraApplication.getSceneBoundingBoxString
}
Row
{
id: additionalComponentsRow
anchors.top: boundingSpec.top
anchors.bottom: boundingSpec.bottom
anchors.left: boundingSpec.right
anchors.leftMargin: UM.Theme.getSize("default_margin").width
}
Component.onCompleted:
{
base.addAdditionalComponents("jobSpecsButton")
@ -140,7 +141,7 @@ Item
onAdditionalComponentsChanged: base.addAdditionalComponents("jobSpecsButton")
}
function addAdditionalComponents (areaId)
function addAdditionalComponents(areaId)
{
if (areaId == "jobSpecsButton")
{