]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix grid client side performance regression (#9913)
authorAleksi Hietanen <aleksi@vaadin.com>
Tue, 5 Sep 2017 05:42:52 +0000 (08:42 +0300)
committerHenri Sara <henri.sara@gmail.com>
Tue, 5 Sep 2017 05:42:52 +0000 (08:42 +0300)
Trigger update of header/footer only if visibility changes.

Fixes #9884

client/src/main/java/com/vaadin/client/widgets/Grid.java

index 6799e46e20954802ac9b8771b26aba51a7eacbfc..dd9353155e0adcd86bf94d097bdcc818dd2c0144 100755 (executable)
@@ -700,8 +700,10 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
          *            true to show this section, false to hide
          */
         public void setVisible(boolean visible) {
-            this.visible = visible;
-            requestSectionRefresh();
+            if (this.visible != visible) {
+                this.visible = visible;
+                requestSectionRefresh();
+            }
         }
 
         /**