mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:22:57 +02:00
Merge pull request #5182 from venkatn93/master
Fixed tooltip position relative to the cursor
This commit is contained in:
commit
d94cc3d785
1 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,9 @@ Hifi.Tooltip {
|
||||||
id: root
|
id: root
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
// FIXME adjust position based on the edges of the screen
|
// FIXME adjust position based on the edges of the screen
|
||||||
x: lastMousePosition.x + 20
|
x: (lastMousePosition.x > surfaceSize.width/2) ? lastMousePosition.x - 140 : lastMousePosition.x + 20
|
||||||
y: lastMousePosition.y + 5
|
//y: lastMousePosition.y + 5
|
||||||
|
y: (lastMousePosition.y > surfaceSize.height/2) ? lastMousePosition.y - 70 : lastMousePosition.y + 5
|
||||||
implicitWidth: border.implicitWidth
|
implicitWidth: border.implicitWidth
|
||||||
implicitHeight: border.implicitHeight
|
implicitHeight: border.implicitHeight
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue