Browse Source

Fix assertion error when column widths are calculated

Change-Id: I042a5bfb548b52911100e01e5a74901a1abfbf33
tags/7.7.2
Artur Signell 7 years ago
parent
commit
57a965251a
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      client/src/main/java/com/vaadin/client/widgets/Grid.java

+ 2
- 1
client/src/main/java/com/vaadin/client/widgets/Grid.java View File

@@ -3214,7 +3214,8 @@ public class Grid<T> extends ResizeComposite implements
private void calculate() {
isScheduled = false;
rescheduleCount = 0;
assert !dataIsBeingFetched : "Trying to calculate column widths even though data is still being fetched.";
assert !(currentDataAvailable.isEmpty()
&& dataIsBeingFetched) : "Trying to calculate column widths without data while data is still being fetched.";

if (columnsAreGuaranteedToBeWiderThanGrid()) {
applyColumnWidths();

Loading…
Cancel
Save