mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-07 06:48:58 +08:00
Make sure the description tooltip is not cutoff at the bottom of the window
This commit is contained in:
parent
502133a006
commit
923b375f8b
@ -18,8 +18,13 @@ Rectangle {
|
||||
property alias text: label.text;
|
||||
|
||||
function show(position) {
|
||||
x = position.x;
|
||||
y = position.y;
|
||||
if(position.y + base.height > parent.height) {
|
||||
x = position.x;
|
||||
y = parent.height - base.height;
|
||||
} else {
|
||||
x = position.x;
|
||||
y = position.y;
|
||||
}
|
||||
base.opacity = 1;
|
||||
}
|
||||
|
||||
@ -37,8 +42,7 @@ Rectangle {
|
||||
right: parent.right;
|
||||
rightMargin: UM.Theme.sizes.tooltip_margins.width;
|
||||
}
|
||||
|
||||
// horizontalAlignment: Qt.AlignJustify;
|
||||
wrapMode: Text.Wrap;
|
||||
font: UM.Theme.fonts.default;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user