Explorar el Código

Fix assertion error when column widths are calculated

Change-Id: I042a5bfb548b52911100e01e5a74901a1abfbf33
tags/7.7.2
Artur Signell hace 7 años
padre
commit
57a965251a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 Ver fichero

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

Cargando…
Cancelar
Guardar