]> git.saurik.com Git - wxWidgets.git/commitdiff
close button better positioning
authorBenjamin Williams <bwilliams@kirix.com>
Thu, 2 Nov 2006 13:11:05 +0000 (13:11 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Thu, 2 Nov 2006 13:11:05 +0000 (13:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibook.cpp

index 17c824f1de1b31e994185a271462379b3eae63ad..3e35388c5190337fe9aaf826db852b4a8023a61b 100644 (file)
@@ -296,8 +296,10 @@ void wxAuiDefaultTabArt::DrawTab(wxDC* dc,
              else
             bmp = m_disabled_close_bmp;
             
-        wxRect rect(tab_x + tab_width - close_button_width - 1, tab_y + 1,
-                    close_button_width, tab_height - 1);
+        wxRect rect(tab_x + tab_width - close_button_width - 1,
+                    tab_y + (tab_height/2) - (bmp.GetHeight()/2) + 1,
+                    close_button_width,
+                    tab_height - 1);
         DrawButtonS(*dc, rect, bmp, *wxWHITE, close_button_state);
         
         *out_button_rect = rect;