summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
70aaa70)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28330
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ // these are the numbers from the HIG, we reduce them by the borders
+ // first
+
switch( m_windowVariant )
{
case wxWINDOW_VARIANT_NORMAL :
switch( m_windowVariant )
{
case wxWINDOW_VARIANT_NORMAL :
break ;
case wxWINDOW_VARIANT_SMALL :
break ;
case wxWINDOW_VARIANT_SMALL :
break ;
case wxWINDOW_VARIANT_MINI :
break ;
case wxWINDOW_VARIANT_MINI :
- if ( HasFlag(wxNO_BORDER) )
- hText -= 6 ;
-
+ // as the above numbers have some free space around the text
+ // we get 5 lines like this anyway
if ( m_windowStyle & wxTE_MULTILINE )
{
hText *= 5 ;
}
if ( m_windowStyle & wxTE_MULTILINE )
{
hText *= 5 ;
}
+ if ( !HasFlag(wxNO_BORDER) )
+ hText += 6 ;
+
return wxSize(wText, hText);
}
return wxSize(wText, hText);
}