if (isAttached()) {
sizeInit();
}
-
- restoreRowVisibility();
+ scrollBody.restoreRowVisibility();
}
if (selectMode == Table.SELECT_MODE_NONE) {
headerChangedDuringUpdate = false;
}
- private void restoreRowVisibility() {
- // Restore row visibility which is set to "none" when the row is
- // rendered.
- Element tableBodyElement = scrollBody.tBodyElement.cast();
- final int rows = DOM.getChildCount(tableBodyElement);
- for (int row = 0; row < rows; row++) {
- final Element cell = DOM.getChild(tableBodyElement, row).cast();
- cell.getStyle().setProperty("visibility", "");
- }
-
- }
-
private void setCacheRate(double d) {
if (cache_rate != d) {
cache_rate = d;
}
scrollBody.fixSpacers();
- restoreRowVisibility();
+ scrollBody.restoreRowVisibility();
}
/**
}
+ /**
+ * Restore row visibility which is set to "none" when the row is
+ * rendered (due a performance optimization).
+ */
+ private void restoreRowVisibility() {
+ for (Widget row : renderedRows) {
+ row.getElement().getStyle().setProperty("visibility", "");
+ }
+ }
+
public class VScrollTableRow extends Panel implements ActionOwner,
Container {