From: Aleksi Hietanen Date: Tue, 5 Sep 2017 05:42:52 +0000 (+0300) Subject: Fix grid client side performance regression (#9913) X-Git-Tag: 8.2.0.alpha1~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77d66552741b5bd80c533902a8728f8cb7918c7f;p=vaadin-framework.git Fix grid client side performance regression (#9913) Trigger update of header/footer only if visibility changes. Fixes #9884 --- diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index 6799e46e20..dd9353155e 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -700,8 +700,10 @@ public class Grid extends ResizeComposite implements HasSelectionHandlers, * 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(); + } } /**