diff options
author | Aleksi Hietanen <aleksi@vaadin.com> | 2017-09-05 08:42:52 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-05 08:42:52 +0300 |
commit | 77d66552741b5bd80c533902a8728f8cb7918c7f (patch) | |
tree | c239f9b99e604df5f57872a3a520decef74230c1 | |
parent | ee4625d0972fccd25098a4fcd2ba5b39452eb845 (diff) | |
download | vaadin-framework-77d66552741b5bd80c533902a8728f8cb7918c7f.tar.gz vaadin-framework-77d66552741b5bd80c533902a8728f8cb7918c7f.zip |
Fix grid client side performance regression (#9913)
Trigger update of header/footer only if visibility changes.
Fixes #9884
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 6 |
1 files 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<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(); + } } /** |