From c4910503e4d01ee3d24ec38e44713c8ba3b48a6a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 31 Aug 2017 10:18:54 +0200 Subject: [PATCH] Correct height of tips text The contentHeight property seems to indicate the height of only one line, contrary to the documentation... Contributes to issue CURA-4148. --- resources/qml/SidebarSimple.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index c1468e5e5a..265c4c1642 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -488,14 +488,16 @@ Item anchors.topMargin: UM.Theme.getSize("sidebar_margin").height * 2 anchors.left: parent.left width: parent.width - height: childrenRect.height + height: tipsText.contentHeight * tipsText.lineCount Text { + id: tipsText anchors.left: parent.left anchors.leftMargin: UM.Theme.getSize("sidebar_margin").width anchors.right: parent.right anchors.rightMargin: UM.Theme.getSize("sidebar_margin").width + anchors.top: parent.top wrapMode: Text.WordWrap //: Tips label text: catalog.i18nc("@label", "Need help improving your prints?
Read the Ultimaker Troubleshooting Guides").arg("https://ultimaker.com/en/troubleshooting") + "".arg(UM.Theme.getIcon("play"))