]> source.dussan.org Git - vaadin-framework.git/commit
Ensure recalculateColumnWidths works with refreshAll. (#11934) (#11959)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 24 Apr 2020 09:01:32 +0000 (12:01 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 09:01:32 +0000 (12:01 +0300)
commit616f24764b2659380c4f4c6ce1057c0056513199
tree30605364c45672aa662845e0f919d0b26592acd6
parent5947875fd3ad16e815bb551604bc26bbe44872de
Ensure recalculateColumnWidths works with refreshAll. (#11934) (#11959)

Column widths shouldn't be calculated between the clearing of cache and
re-populating it, but be delayed until the cache has some content again.
The calculations should only be triggered immediately if no rows are
expected.

Fixes #9996
client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
client/src/main/java/com/vaadin/client/widgets/Grid.java
uitest/src/main/java/com/vaadin/tests/components/grid/GridRecalculateColumnWidthNewItem.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/grid/GridRecalculateColumnWidthNewItemTest.java [new file with mode: 0644]