diff options
author | David Athay <ko2fan@gmail.com> | 2008-05-16 15:48:52 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-05-16 15:48:52 +0000 |
commit | 8d3028707f0c5b65c3a78178f63a0cccc9a0c9a8 (patch) | |
tree | 2e6bd9e0e84eceac03604b81eebcafa76a8e4d80 /src/gui | |
parent | 2d648c5dc29a1ceae154194c23c799c7076894b4 (diff) | |
download | mana-8d3028707f0c5b65c3a78178f63a0cccc9a0c9a8.tar.gz mana-8d3028707f0c5b65c3a78178f63a0cccc9a0c9a8.tar.bz2 mana-8d3028707f0c5b65c3a78178f63a0cccc9a0c9a8.tar.xz mana-8d3028707f0c5b65c3a78178f63a0cccc9a0c9a8.zip |
Applied QOAL's patch to fix popup bug.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popupmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index f9bfe56d..cdc998e0 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -293,9 +293,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(); |