Procházet zdrojové kódy

Fix assertion error when column widths are calculated

Change-Id: I042a5bfb548b52911100e01e5a74901a1abfbf33
tags/7.7.2
Artur Signell před 7 roky
rodič
revize
57a965251a

+ 2
- 1
client/src/main/java/com/vaadin/client/widgets/Grid.java Zobrazit soubor

@@ -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();

Načítá se…
Zrušit
Uložit