if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
return false;
- m_label = label;
+ m_labelOrig = m_label = label;
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
// Later on, the staticbox's font height is added to this.
extraTop = 0;
- if ( UMAGetSystemVersion() >= 0x1030 ) // Panther
- {
- // As indicated by the HIG, Panther needs an extra border of 11
- // pixels (otherwise overlapping occurs at the top). The "other"
- // border has to be 11.
- extraTop = 11;
- other = 11;
- }
+ // As indicated by the HIG, Panther needs an extra border of 11
+ // pixels (otherwise overlapping occurs at the top). The "other"
+ // border has to be 11.
+ extraTop = 11;
+ other = 11;
}
- *borderTop = extraTop + GetCharHeight();
+ *borderTop = extraTop;
+ if ( !m_label.empty() )
+ *borderTop += GetCharHeight();
+
*borderOther = other;
}