* made the button height proportional to the font

size instead of having a fixed spacing... should
  be more asthetical.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16443 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-02-16 22:55:02 +00:00
parent a9f98d52a3
commit ccf81dc9d2

View File

@ -593,7 +593,8 @@ BButton::GetPreferredSize(float *_width, float *_height)
font_height fontHeight;
GetFontHeight(&fontHeight);
*_height = 12.0f + (float)ceil(fontHeight.ascent + fontHeight.descent)
// *_height = 12.0f + ceilf(fontHeight.ascent + fontHeight.descent)
*_height = ceilf((fontHeight.ascent + fontHeight.descent) * 1.8)
+ (fDrawAsDefault ? 6.0f : 0);
}