mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:59:02 +08:00
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.
This commit is contained in:
parent
526a42f7a0
commit
c4910503e4
@ -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?<br>Read the <a href='%1'>Ultimaker Troubleshooting Guides</a>").arg("https://ultimaker.com/en/troubleshooting") + "<img src='%1'></img>".arg(UM.Theme.getIcon("play"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user