Browse Source

Don't determine row height before the contents are rendered (#8313)

tags/7.0.0.alpha2
Leif Åstrand 12 years ago
parent
commit
8ca6ae2a5e
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

+ 3
- 6
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java View File

@@ -1608,6 +1608,9 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
return;
}
sizeNeedsInit = false;

scrollBody.setContainerHeight();

/*
* We will use browsers table rendering algorithm to find proper column
* widths. If content and header take less space than available, we will
@@ -4146,12 +4149,6 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
throw new UnsupportedOperationException();
}

@Override
protected void onAttach() {
super.onAttach();
setContainerHeight();
}

/**
* Fix container blocks height according to totalRows to avoid
* "bouncing" when scrolling

Loading…
Cancel
Save