X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e1f50128a73bd61db8ee0077b631ada9486158a..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 4d3feeb72b..bb499a7cda 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -107,4 +107,13 @@ wxStaticBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) return GetDefaultAttributesFromGTKWidget(gtk_frame_new); } + +void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const +{ + const int BORDER = 5; // FIXME: hardcoded value + + *borderTop = GetLabel().empty() ? 2*BORDER : GetCharHeight(); + *borderOther = BORDER; +} + #endif // wxUSE_STATBOX