]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix vertical offset for wxGTK wxStaticBox without label.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Jun 2012 16:33:04 +0000 (16:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Jun 2012 16:33:04 +0000 (16:33 +0000)
Don't use different size for the vertical border in wxStaticBox just because
it doesn't have any label, this just doesn't seem necessary and results in
different appearance for the static box with and without label.

Closes #14430.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/statbox.cpp

index 56cd02327be62225ca664c7e0ef1bed8693dc104..ec1ee9d101a6f702544f3e42fb5e7037333a01b0 100644 (file)
@@ -156,7 +156,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
 {
     const int BORDER = 5; // FIXME: hardcoded value
 
-    *borderTop = GetLabel().empty() ? 2*BORDER : GetCharHeight();
+    *borderTop = GetCharHeight();
     *borderOther = BORDER;
 }