if (isAttached()) {
sizeInit();
}
+
+ 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.
+ TableSectionElement tableBodyElement = scrollBody.tBodyElement;
+ final int rows = tableBodyElement.getChildCount();
+ for (int row = 0; row < rows; row++) {
+ final Element cell = tableBodyElement.getChild(row).cast();
+ cell.getStyle().setProperty("visibility", "");
+ }
+
+ }
+
private void setCacheRate(double d) {
if (cache_rate != d) {
cache_rate = d;
}
scrollBody.fixSpacers();
+ restoreRowVisibility();
}
/**
public VScrollTableRow(UIDL uidl, char[] aligns) {
this(uidl.getIntAttribute("key"));
+ /*
+ * Rendering the rows as hidden improves Firefox and Safari
+ * performance drastically.
+ */
+ getElement().getStyle().setProperty("visibility", "hidden");
+
String rowStyle = uidl.getStringAttribute("rowstyle");
if (rowStyle != null) {
addStyleName(CLASSNAME + "-row-" + rowStyle);