]> git.saurik.com Git - wxWidgets.git/commitdiff
notebook window list popup positioning fixes
authorBenjamin Williams <bwilliams@kirix.com>
Thu, 16 Nov 2006 18:48:00 +0000 (18:48 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Thu, 16 Nov 2006 18:48:00 +0000 (18:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibook.cpp

index 6054d0054d738e0c5a9cb73003717324835f3ee3..51b7602b2a5223b50d2c698f47180b6ed09d25dc 100644 (file)
@@ -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();