summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-05-16 15:20:30 +0000
committerDavid Athay <ko2fan@gmail.com>2008-05-16 15:20:30 +0000
commitb87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a (patch)
tree20661ad471063bfb3b8ad3988f46dacc987f490e /src/gui
parent0927a888d5fbf75b752e3b8b7fa9c23bcbd76b2c (diff)
downloadmana-client-b87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a.tar.gz
mana-client-b87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a.tar.bz2
mana-client-b87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a.tar.xz
mana-client-b87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a.zip
Applied QOALs patch to fix popup bug
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popupmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 1098cd3a..01f48ccc 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -246,9 +246,9 @@ void PopupMenu::showPopup(int x, int y)
{
setContentSize(mBrowserBox->getWidth() + 8, mBrowserBox->getHeight() + 8);
if (windowContainer->getWidth() < (x + getWidth() + 5))
- x -= (getWidth() + 50);
+ x = windowContainer->getWidth() - getWidth();
if (windowContainer->getHeight() < (y + getHeight() + 5))
- y -= (getHeight() + 50);
+ y = windowContainer->getHeight() - getHeight();
setPosition(x, y);
setVisible(true);
requestMoveToTop();