From 77d66552741b5bd80c533902a8728f8cb7918c7f Mon Sep 17 00:00:00 2001 From: Aleksi Hietanen Date: Tue, 5 Sep 2017 08:42:52 +0300 Subject: [PATCH] Fix grid client side performance regression (#9913) Trigger update of header/footer only if visibility changes. Fixes #9884 --- client/src/main/java/com/vaadin/client/widgets/Grid.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); + } } /** -- 2.39.5