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:
Arjen Hiemstra 2015-05-27 15:37:32 +02:00
parent 65781eee84
commit 68500ed1d0
2 changed files with 4 additions and 4 deletions

View file

@ -16,10 +16,10 @@ UM.AngledCornerRectangle {
property alias saveAction: saveButton.saveAction;
cornerSize: UM.Theme.sizes.default_margin.width;
function showTooltip(item, position, text) {
tooltip.text = text;
position = item.mapToItem(base, position.x, position.y);
position = item.mapToItem(base, position.x, position.y / 2);
tooltip.show(position);
}

View file

@ -22,10 +22,10 @@ Rectangle {
function show(position) {
if(position.y + base.height > parent.height) {
x = position.x;
x = position.x - base.width;
y = parent.height - base.height;
} else {
x = position.x;
x = position.x - base.width;
y = position.y;
}
base.opacity = 1;