From 7f1e14684d4204da00477ed9ae23f2976bc902bf Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Thu, 16 Nov 2006 18:48:00 +0000 Subject: [PATCH] notebook window list popup positioning fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 6054d0054d..51b7602b2a 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -673,15 +673,9 @@ int wxAuiDefaultTabArt::ShowWindowList(wxWindow* wnd, menuPopup.Check(1000+active_idx, true); } - // find out where to put the popup menu of window - // items. Subtract 100 for now to center the menu - // a bit, until a better mechanism can be implemented + // find out where to put the popup menu of window items wxPoint pt = ::wxGetMousePosition(); pt = wnd->ScreenToClient(pt); - if (pt.x < 100) - pt.x = 0; - else - pt.x -= 100; // find out the screen coordinate at the bottom of the tab ctrl wxRect cli_rect = wnd->GetClientRect(); -- 2.47.2