mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 06:23:16 +08: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
@ -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
|
||||
|
@ -62,13 +62,19 @@ Item
|
||||
var affected_by_list = ""
|
||||
for (var i in affected_by)
|
||||
{
|
||||
affected_by_list += "<li>%1</li>\n".arg(affected_by[i].label)
|
||||
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)
|
||||
{
|
||||
affects_list += "<li>%1</li>\n".arg(affects[i].label)
|
||||
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…
x
Reference in New Issue
Block a user