From 13633186ffe34afdfcf1e0393eb515eec2047868 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 26 Jun 2012 06:50:54 -0700 Subject: [PATCH] don't reset variable unless changed --- .../XWords4/src/org/eehouse/android/xw4/BoardView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java index e7522cd58..ba4b8a113 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java @@ -295,9 +295,9 @@ public class BoardView extends View implements DrawCtx, BoardHandler, heightLeft /= 3; trayHt += heightLeft * 2; scoreHt += heightLeft; + heightUsed = trayHt + scoreHt + ((nCells - nToScroll) * cellSize); + heightLeft = height - heightUsed; } - heightUsed = trayHt + scoreHt + ((nCells - nToScroll) * cellSize); - heightLeft = height - heightUsed; result.top = heightLeft / 2; result.trayHt = trayHt;