Browse Source

Don't let print info take space if invisible

This way there is a little bit more space for the text 'No time estimation available', which was previously abbreviated to 'No time estimation availa...'.
Ghostkeeper 6 years ago
parent
commit
8a4a1c9d49

+ 1 - 1
resources/qml/ActionPanel/OutputProcessWidget.qml

@@ -41,7 +41,7 @@ Column
             {
                 left: parent.left
                 right: printInformationPanel.left
-                rightMargin: UM.Theme.getSize("thin_margin").height
+                rightMargin: printInformationPanel.visible ? UM.Theme.getSize("thin_margin").width : 0
             }
 
             Cura.IconWithText

+ 1 - 1
resources/qml/ActionPanel/PrintInformationWidget.qml

@@ -12,7 +12,7 @@ UM.RecolorImage
     id: widget
 
     source: UM.Theme.getIcon("info")
-    width: UM.Theme.getSize("section_icon").width
+    width: visible ? UM.Theme.getSize("section_icon").width : 0
     height: UM.Theme.getSize("section_icon").height
 
     color: UM.Theme.getColor("icon")