From: Leif Åstrand Date: Thu, 23 Feb 2012 10:33:42 +0000 (+0200) Subject: Reset row and col sizes for each pass (#8313) X-Git-Tag: 7.0.0.alpha2~434^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5026061ee3b2cbac62eab9114e4088785f727d40;p=vaadin-framework.git Reset row and col sizes for each pass (#8313) --- 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];