From 5df570e09bc14822392040d43c5f8db2cdec63b3 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:43:43 +0000 Subject: [PATCH] 2003/12/29 22:13:16 darcs-hash:20040130074343-2ba56-5395a90cdbb85b61a9179faf1be9fb20033f1e0c.gz --- src/org/xwt/Box.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 13717cf..6f0c92c 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -302,7 +302,8 @@ public final class Box extends JSScope implements Scheduler.Task { int increment = max(1, x_slack / cols); startslack = x_slack; for(short col=0; col < cols; col++) { - int diff = min(colMaxWidth[col], colWidth[col] + increment) - colWidth[col]; + // FIXME: double check this + int diff = min(min(colMaxWidth[col], colWidth[col] + increment) - colWidth[col], x_slack); x_slack -= diff; colWidth[col] += diff; } -- 1.7.10.4