Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force re-measurement of scrollbars #182

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Add option to force remeasurement of scrollbars"
This reverts commit faa3014.
  • Loading branch information
nickfogler committed Dec 21, 2017
commit e608c959372e509753c84582d67bed187a1e59aa
4 changes: 2 additions & 2 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1921,7 +1921,7 @@ if (typeof Slick === "undefined") {
(options.createPreHeaderPanel && options.showPreHeaderPanel ? options.preHeaderPanelHeight + getVBoxDelta($preHeaderPanelScroller) : 0);
}

function resizeCanvas(forceReMeasure) {
function resizeCanvas(forceUpdate) {
if (!initialized) { return; }
if (options.autoHeight) {
viewportH = options.rowHeight * getDataLengthIncludingAddNew();
Expand All @@ -1935,7 +1935,7 @@ if (typeof Slick === "undefined") {
$viewport.height(viewportH);
}

if (forceReMeasure) {
if (forceUpdate) {
scrollbarDimensions = measureScrollbar();
}

Expand Down