Browse Source

Fix display of profile name in header

Without no-wrap, longer names would be put on multiple lines.
These would then spill out of the display element
Jaime van Kessel 3 years ago
parent
commit
2ed68beb22

+ 1 - 0
resources/qml/IconWithText.qml

@@ -21,6 +21,7 @@ Item
     property alias font: label.font
     property alias elide: label.elide
     property real margin: UM.Theme.getSize("narrow_margin").width
+    property alias wrapMode: label.wrapMode
 
     // These properties can be used in combination with layouts.
     readonly property real contentWidth: icon.width + margin + label.contentWidth

+ 1 - 1
resources/qml/PrintSetupSelector/PrintSetupSelectorHeader.qml

@@ -39,7 +39,7 @@ RowLayout
         }
         font: UM.Theme.getFont("medium")
         elide: Text.ElideMiddle
-
+        wrapMode: Text.NoWrap
         UM.SettingPropertyProvider
         {
             id: layerHeight