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:
John Scipione 2012-05-24 21:38:25 -04:00
parent 936b7fe433
commit 85136facde
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}