package daemon: ProblemWindow: Simplify getting the font height
This commit is contained in:
parent
c159d0cfd1
commit
9f12d254b1
@ -93,10 +93,8 @@ ProblemWindow::ProblemWindow()
|
||||
viewPort->SetChildView(fContainerView = new BGroupView(B_VERTICAL, 0));
|
||||
|
||||
// set small scroll step (large step will be set by the view port)
|
||||
BFont font;
|
||||
topTextView->GetFont(&font);
|
||||
font_height fontHeight;
|
||||
font.GetHeight(&fontHeight);
|
||||
topTextView->GetFontHeight(&fontHeight);
|
||||
float smallStep = ceilf(fontHeight.ascent + fontHeight.descent);
|
||||
viewPort->ScrollBar(B_VERTICAL)->SetSteps(smallStep, smallStep);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user