Kaydet (Commit) 1f6e8827 authored tarafından Caolán McNamara's avatar Caolán McNamara

arrow buttons seem too big

Change-Id: I18b16b445c435cc4685712d9cdac4ad23f333f5a
üst 59c40f2a
...@@ -1614,13 +1614,13 @@ Size PushButton::CalcMinimumSize( long nMaxWidth ) const ...@@ -1614,13 +1614,13 @@ Size PushButton::CalcMinimumSize( long nMaxWidth ) const
PushButton::GetText(), ImplGetTextStyle( nDrawFlags ) ).GetSize(); PushButton::GetText(), ImplGetTextStyle( nDrawFlags ) ).GetSize();
aSize.Width() += textSize.Width(); aSize.Width() += textSize.Width();
aSize.Height() = std::max( aSize.Height(), long( textSize.Height() * 1.15 ) ); aSize.Height() = std::max( aSize.Height(), long( textSize.Height() * 1.15 ) );
}
// cf. ImplDrawPushButton ... // cf. ImplDrawPushButton ...
if( (GetStyle() & WB_SMALLSTYLE) == 0 ) if( (GetStyle() & WB_SMALLSTYLE) == 0 )
{ {
aSize.Width() += 24; aSize.Width() += 24;
aSize.Height() += 12; aSize.Height() += 12;
}
} }
return CalcWindowSize( aSize ); return CalcWindowSize( aSize );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment