diff options
author | Teppo Kurki <teppo.kurki@vaadin.com> | 2015-08-28 09:23:05 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-09-01 13:52:43 +0000 |
commit | 3c9ec4f459408c1d927b9d7e4803c3f7ac548b29 (patch) | |
tree | ed714559e89e40bbb3197a5d58cdaa822b876d3a /client | |
parent | 53a4b2c77a6af86c157884c62e6193911242a7f9 (diff) | |
download | vaadin-framework-3c9ec4f459408c1d927b9d7e4803c3f7ac548b29.tar.gz vaadin-framework-3c9ec4f459408c1d927b9d7e4803c3f7ac548b29.zip |
Close existing details when the generator is changed (#18664)
Change-Id: Iae5e70f42c27731ce40c00604ccc6097323faa79
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 91fc87d2c7..dbce8c1bbd 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -8191,6 +8191,10 @@ public class Grid<T> extends ResizeComposite implements "Details generator may not be null"); } + for (Integer index : visibleDetails) { + setDetailsVisible(index, false); + } + this.detailsGenerator = detailsGenerator; // this will refresh all visible spacers |