diff options
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index dec3faf9..3c91a273 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -58,7 +58,6 @@ PopupMenu::PopupMenu(): Popup("PopupMenu") { mBrowserBox = new BrowserBox; - mBrowserBox->setPosition(4, 4); mBrowserBox->setHighlightMode(BrowserBox::BACKGROUND); mBrowserBox->setLinkHandler(this); add(mBrowserBox); @@ -399,7 +398,7 @@ void PopupMenu::showPopup(Window *parent, int x, int y, Item *item, void PopupMenu::showPopup(int x, int y) { - setContentSize(mBrowserBox->getWidth() + 8, mBrowserBox->getHeight() + 8); + setContentSize(mBrowserBox->getWidth(), mBrowserBox->getHeight()); if (graphics->getWidth() < (x + getWidth() + 5)) x = graphics->getWidth() - getWidth(); if (graphics->getHeight() < (y + getHeight() + 5)) |