mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Prevent last line of popup to be cut off
We didn't take the y offset into account CURA-9112
This commit is contained in:
parent
a2d721b6ac
commit
2ecec1fa37
2 changed files with 9 additions and 3 deletions
|
@ -63,7 +63,7 @@ UM.PointingRectangle
|
|||
{
|
||||
id: textScroll
|
||||
width: parent.width
|
||||
height: Math.min(label.height, base.parent.height)
|
||||
height: Math.min(label.height + UM.Theme.getSize("tooltip_margins").height, base.parent.height)
|
||||
|
||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||
|
|
|
@ -61,15 +61,21 @@ Item
|
|||
|
||||
var affected_by_list = ""
|
||||
for (var i in affected_by)
|
||||
{
|
||||
if(affected_by[i].label != "")
|
||||
{
|
||||
affected_by_list += "<li>%1</li>\n".arg(affected_by[i].label)
|
||||
}
|
||||
}
|
||||
|
||||
var affects_list = ""
|
||||
for (var i in affects)
|
||||
{
|
||||
if(affects[i].label != "")
|
||||
{
|
||||
affects_list += "<li>%1</li>\n".arg(affects[i].label)
|
||||
}
|
||||
}
|
||||
|
||||
var tooltip = "<b>%1</b>\n<p>%2</p>".arg(definition.label).arg(definition.description)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue