Skip to content

Commit b23eb9b

Browse files
committed
Change left anchor of the time and cost information panel
1 parent 675bad6 commit b23eb9b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

resources/qml/SidebarFooter.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ Cura.RoundedRectangle
5252
onLoaded:
5353
{
5454
actionPanelWidget.updateHasPreviewButton();
55+
56+
// change left anchor of the time and cost information panel
57+
var actionPanelRect = actionPanelWidget.children[0];
58+
if(actionPanelRect.children[0].item != null && actionPanelRect.children[0].item.children[0] != null)
59+
{
60+
var timeAndCostsInformation = actionPanelRect.children[0].item.children[0].children[1];
61+
if (timeAndCostsInformation != undefined)
62+
{
63+
timeAndCostsInformation.anchors.leftMargin = Qt.binding(function() { return -actionPanelWidget.children[1].width - UM.Theme.getSize("thin_margin").width });
64+
}
65+
}
5566
}
5667
}
5768

0 commit comments

Comments
 (0)