fix(StatusTooltip): long text goes out of bounds

Fixes #9918
This commit is contained in:
Lukáš Tinkl 2023-03-16 17:43:33 +01:00 committed by Lukáš Tinkl
parent 411961aee7
commit 8aa8b8b7ce
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ ColumnLayout {
text: "Hover me!"
StatusToolTip {
visible: parent.hovered
text: "Top"
text: "http://thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com%2Fwearejustdoingthistobestupidnowsincethiscangoonforeverandeverandeverbutitstilllookskindaneatinthebrowsereventhoughitsabigwasteoftimeandenergyandhasnorealpointbutwehadtodoitanyways.html&ei=40egUo2MGI3xoATQtIKwDQ&usg=AFQjCNHbBa5Fk4YutdUOj_D8IwpJLu7hGw&sig2=8P4ew1Yie72Ps_OQ-L5cXw&bvm=bv.57155469%2Cd.cGU"
}
StatusToolTip {
visible: parent.hovered

View File

@ -65,11 +65,12 @@ ToolTip {
text: statusToolTip.text
color: Theme.palette.white
linkColor: Theme.palette.white
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
font.pixelSize: 13
font.weight: Font.Medium
horizontalAlignment: Text.AlignHCenter
bottomPadding: 8
textFormat: Text.RichText
elide: Text.ElideRight
}
}