From 2ed68beb22db423bc8774643c767baae2031db3b Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 4 Mar 2022 10:30:26 +0100 Subject: [PATCH] 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 --- resources/qml/IconWithText.qml | 1 + resources/qml/PrintSetupSelector/PrintSetupSelectorHeader.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/IconWithText.qml b/resources/qml/IconWithText.qml index 8a76481da9..d7b4adfa8c 100644 --- a/resources/qml/IconWithText.qml +++ b/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 diff --git a/resources/qml/PrintSetupSelector/PrintSetupSelectorHeader.qml b/resources/qml/PrintSetupSelector/PrintSetupSelectorHeader.qml index 3b6fc37eb4..41e913a2c1 100644 --- a/resources/qml/PrintSetupSelector/PrintSetupSelectorHeader.qml +++ b/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