From 5026061ee3b2cbac62eab9114e4088785f727d40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Thu, 23 Feb 2012 12:33:42 +0200 Subject: [PATCH] Reset row and col sizes for each pass (#8313) --- src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java index 0d56f47a6f..8168141ece 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VGridLayout.java @@ -235,6 +235,10 @@ public class VGridLayout extends ComplexPanel { } private void detectRowHeights() { + for (int i = 0; i < rowHeights.length; i++) { + rowHeights[i] = 0; + } + // collect min rowheight from non-rowspanned cells for (int i = 0; i < cells.length; i++) { for (int j = 0; j < cells[i].length; j++) { @@ -259,6 +263,10 @@ public class VGridLayout extends ComplexPanel { private void detectColWidths() { // collect min colwidths from non-colspanned cells + for (int i = 0; i < columnWidths.length; i++) { + columnWidths[i] = 0; + } + for (int i = 0; i < cells.length; i++) { for (int j = 0; j < cells[i].length; j++) { Cell cell = cells[i][j]; -- 2.39.5