hrev44204 adds 1 changeset to branch 'master' old head: 936b7fe4331f2dbfe63697bd90e29ce23fb828c7 new head: 85136facdeaac7df6ae1f0b4f2dbfb3550ded245 ---------------------------------------------------------------------------- 85136fa: 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. [ John Scipione <jscipione@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev44204 Commit: 85136facdeaac7df6ae1f0b4f2dbfb3550ded245 URL: http://cgit.haiku-os.org/haiku/commit/?id=85136fa Author: John Scipione <jscipione@xxxxxxxxx> Date: Fri May 25 01:38:25 2012 UTC ---------------------------------------------------------------------------- 1 file changed, 1 insertion(+), 1 deletion(-) src/apps/deskcalc/CalcView.cpp | 2 +- ---------------------------------------------------------------------------- diff --git a/src/apps/deskcalc/CalcView.cpp b/src/apps/deskcalc/CalcView.cpp index 625034e..f5b13af 100644 --- a/src/apps/deskcalc/CalcView.cpp +++ b/src/apps/deskcalc/CalcView.cpp @@ -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(); }