From b87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a Mon Sep 17 00:00:00 2001 From: David Athay Date: Fri, 16 May 2008 15:20:30 +0000 Subject: Applied QOALs patch to fix popup bug --- src/gui/popupmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/popupmenu.cpp') 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(); -- cgit v1.2.3-70-g09d2