From 85136facdeaac7df6ae1f0b4f2dbfb3550ded245 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 24 May 2012 21:38:25 -0400 Subject: [PATCH] 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. --- src/apps/deskcalc/CalcView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/deskcalc/CalcView.cpp b/src/apps/deskcalc/CalcView.cpp index 625034e748..f5b13afe2d 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(); }