Merge lp:~dyams/unity-2d/launcher-tootip-position into lp:unity-2d

Proposed by Lohith D Shivamurthy
Status: Merged
Approved by: Gerry Boland
Approved revision: 807
Merged at revision: 813
Proposed branch: lp:~dyams/unity-2d/launcher-tootip-position
Merge into: lp:unity-2d
Diff against target: 12 lines (+1/-1)
1 file modified
libunity-2d-private/src/launchermenu.cpp (+1/-1)
To merge this branch: bzr merge lp:~dyams/unity-2d/launcher-tootip-position
Reviewer Review Type Date Requested Status
Gerry Boland Pending
Review via email: mp+84483@code.launchpad.net

Description of the change

[launcher] tooltip positioned to center of the tile properly

To post a comment you must log in.
Revision history for this message
Lohith D Shivamurthy (dyams) wrote :

Change description details:
Instead of minimumSize().height, now we take sizeHint().height to calculate the 'y' pos of the menu.
You may also notice that, the 'x' pos is calculated by considering sizeHint().width already.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libunity-2d-private/src/launchermenu.cpp'
2--- libunity-2d-private/src/launchermenu.cpp 2011-11-05 21:14:08 +0000
3+++ libunity-2d-private/src/launchermenu.cpp 2011-12-05 14:58:26 +0000
4@@ -177,7 +177,7 @@
5 x = QApplication::desktop()->width() - x - sizeHint().width();
6 }
7
8- move(x, y - minimumSize().height() / 2);
9+ move(x, y - sizeHint().height() / 2 );
10 QMenu::show();
11
12 /* FIXME: adjust the position of the menu if it goes offscreen,

Subscribers

People subscribed via source and target branches