]> source.dussan.org Git - vaadin-framework.git/commitdiff
Performance improvement for #2998 - Table rendering in Firefox is very slow when...
authorArtur Signell <artur.signell@itmill.com>
Tue, 1 Sep 2009 07:14:44 +0000 (07:14 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 1 Sep 2009 07:14:44 +0000 (07:14 +0000)
Fixed GWT 1.7.0 incompatibilities

svn changeset:8601/svn branch:6.1

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 1409ae9b8f518bb1a22d5fa06e8edfb4b5c4a685..f97cd451c69a308d6be9974aa90ac834c55cf4f7 100644 (file)
@@ -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", "");
         }