Fix formatting bug in Deskcalc.
Calculations that take up the full width of the Deskcalc window sometimes scroll the result over showing you only the tail end. This is because the horizontal inset makes the area too small to fit the result. Removing this horizontal inset means that the result will always fit in the space provided, and Deskcalc will recalculate to fit, but it also means that the result always starts at the leftmost side of the textarea, a fair tradeoff.
This commit is contained in:
parent
936b7fe433
commit
85136facde
@ -693,7 +693,7 @@ CalcView::FrameResized(float width, float height)
|
||||
|
||||
frame.OffsetTo(B_ORIGIN);
|
||||
float inset = (frame.Height() - fExpressionTextView->LineHeight(0)) / 2;
|
||||
frame.InsetBy(inset, inset);
|
||||
frame.InsetBy(0, inset);
|
||||
fExpressionTextView->SetTextRect(frame);
|
||||
Invalidate();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user