]> git.saurik.com Git - wxWidgets.git/commitdiff
more tweaks to the margins: don't need them to be so big in vertical direction
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jun 2006 08:24:39 +0000 (08:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Jun 2006 08:24:39 +0000 (08:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/bmpbuttn.cpp

index c47f2abc913d2b80447fec1d1137a0e58970bc52..6dfee11693c97d43c92e49f186b6f81bc5e92645 100644 (file)
@@ -608,7 +608,7 @@ wxSize wxBitmapButton::DoGetBestSize() const
             wxSize best(m_bmpNormal.GetWidth() +
                             margins.cxLeftWidth + margins.cxRightWidth + 5,
                         m_bmpNormal.GetHeight() +
-                            margins.cyTopHeight + margins.cyBottomHeight + 5);
+                            margins.cyTopHeight + margins.cyBottomHeight + 2);
             CacheBestSize(best);
             return best;
         }