mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 12:15:59 +08:00
Position the setting tooltip to the left of the settings instead of below
This makes the tooltip not cover the settings. Fixes Asana issue 39
This commit is contained in:
parent
65781eee84
commit
68500ed1d0
@ -16,10 +16,10 @@ UM.AngledCornerRectangle {
|
|||||||
property alias saveAction: saveButton.saveAction;
|
property alias saveAction: saveButton.saveAction;
|
||||||
|
|
||||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||||
|
|
||||||
function showTooltip(item, position, text) {
|
function showTooltip(item, position, text) {
|
||||||
tooltip.text = text;
|
tooltip.text = text;
|
||||||
position = item.mapToItem(base, position.x, position.y);
|
position = item.mapToItem(base, position.x, position.y / 2);
|
||||||
tooltip.show(position);
|
tooltip.show(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ Rectangle {
|
|||||||
|
|
||||||
function show(position) {
|
function show(position) {
|
||||||
if(position.y + base.height > parent.height) {
|
if(position.y + base.height > parent.height) {
|
||||||
x = position.x;
|
x = position.x - base.width;
|
||||||
y = parent.height - base.height;
|
y = parent.height - base.height;
|
||||||
} else {
|
} else {
|
||||||
x = position.x;
|
x = position.x - base.width;
|
||||||
y = position.y;
|
y = position.y;
|
||||||
}
|
}
|
||||||
base.opacity = 1;
|
base.opacity = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user