]> git.saurik.com Git - wxWidgets.git/commitdiff
Need an extra pixel when divider present
authorJulian Smart <julian@anthemion.co.uk>
Tue, 27 Mar 2007 13:42:42 +0000 (13:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 27 Mar 2007 13:42:42 +0000 (13:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index eae78ec579dae635c1f2644ae55f12952452582c..e08d46d3d834ac5bb628f42a3d33919ce98a5a3c 100644 (file)
@@ -400,6 +400,9 @@ wxSize wxToolBar::DoGetBestSize() const
         sizeBest.y = size.cy;
     }
 
+    if (!IsVertical() && !(GetWindowStyle() & wxTB_NODIVIDER))
+        sizeBest.y += 1;
+
     CacheBestSize(sizeBest);
 
     return sizeBest;