* 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:
parent
a9f98d52a3
commit
ccf81dc9d2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user