aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-09-01 07:14:44 +0000
committerArtur Signell <artur.signell@itmill.com>2009-09-01 07:14:44 +0000
commit95848331d860962ba927f0bc9f603eba0af27336 (patch)
treedb94335a46d337517958daeed0c34380402bea89
parent39ee85c823ecab75760e4f9768e003cf60b7e796 (diff)
downloadvaadin-framework-95848331d860962ba927f0bc9f603eba0af27336.tar.gz
vaadin-framework-95848331d860962ba927f0bc9f603eba0af27336.zip
Performance improvement for #2998 - Table rendering in Firefox is very slow when the table contains components
Fixed GWT 1.7.0 incompatibilities svn changeset:8601/svn branch:6.1
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index 1409ae9b8f..f97cd451c6 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -305,10 +305,10 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler {
private void restoreRowVisibility() {
// Restore row visibility which is set to "none" when the row is
// rendered.
- TableSectionElement tableBodyElement = scrollBody.tBodyElement;
- final int rows = tableBodyElement.getChildCount();
+ Element tableBodyElement = scrollBody.tBodyElement.cast();
+ final int rows = DOM.getChildCount(tableBodyElement);
for (int row = 0; row < rows; row++) {
- final Element cell = tableBodyElement.getChild(row).cast();
+ final Element cell = DOM.getChild(tableBodyElement, row).cast();
cell.getStyle().setProperty("visibility", "");
}