}
}
- Util.runWebkitOverflowAutoFixDeferred(scrollBodyPanel.getElement());
-
forceRealignColumnHeaders();
}
if (initializedAndAttached) {
updatePageLength();
}
- if (!rendering) {
- // Webkit may sometimes get an odd rendering bug (white space
- // between header and body), see bug #3875. Running
- // overflow hack here to shake body element a bit.
- // We must run the fix as a deferred command to prevent it from
- // overwriting the scroll position with an outdated value, see
- // #7607.
- Util.runWebkitOverflowAutoFixDeferred(scrollBodyPanel.getElement());
- }
triggerLazyColumnAdjustment(false);
uidl.getIntAttribute("rows"));
if (getWidget().headerChangedDuringUpdate) {
getWidget().triggerLazyColumnAdjustment(true);
- } else if (!getWidget().isScrollPositionVisible()
- || totalRowsHaveChanged
- || getWidget().lastRenderedHeight != getWidget().scrollBody
- .getOffsetHeight()) {
- // webkits may still bug with their disturbing scrollbar
- // bug, see #3457
- // Run overflow fix for the scrollable area
- // #6698 - If there's a scroll going on, don't abort it
- // by changing overflows as the length of the contents
- // *shouldn't* have changed (unless the number of rows
- // or the height of the widget has also changed)
- Util.runWebkitOverflowAutoFixDeferred(getWidget().scrollBodyPanel
- .getElement());
}
} else {
getWidget().initializeRows(uidl, rowData);