No longer cuts the "Signature" label in certain situations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14092 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -190,10 +190,10 @@ BmapButton::Draw(BRect updateRect)
|
|||||||
renderFont = *be_plain_font;
|
renderFont = *be_plain_font;
|
||||||
renderFont.GetHeight(&fheight);
|
renderFont.GetHeight(&fheight);
|
||||||
SetFont(&renderFont);
|
SetFont(&renderFont);
|
||||||
|
|
||||||
labelHeight = fheight.leading + fheight.ascent + fheight.descent + 1;
|
labelHeight = fheight.leading + fheight.ascent + fheight.descent + 1;
|
||||||
labelWidth = renderFont.StringWidth(Label())-2;
|
labelWidth = renderFont.StringWidth(Label());
|
||||||
|
|
||||||
BRect textRect;
|
BRect textRect;
|
||||||
textRect.left = (bounds.right-bounds.left-labelWidth+1)/2;
|
textRect.left = (bounds.right-bounds.left-labelWidth+1)/2;
|
||||||
textRect.right = textRect.left+labelWidth;
|
textRect.right = textRect.left+labelWidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user