Permalink
Browse files

Adding scrollbar width to the headers width and change headers width …

…when resizing columns
  • Loading branch information...
1 parent 9846d23 commit 954aa060f0166c0f5d858a1d74ef887fde67240e Matthieu Ravey committed Apr 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 slick.grid.js
View
@@ -346,7 +346,7 @@ if (typeof Slick === "undefined") {
headersWidth += width;
}
- return headersWidth + 1000;
+ return headersWidth + scrollbarDimensions.width + 1000;
}
function getCanvasWidth() {
@@ -365,6 +365,7 @@ if (typeof Slick === "undefined") {
if (canvasWidth != oldCanvasWidth) {
$canvas.width(canvasWidth);
+ $headers.width(getHeadersWidth());
$headerRow.width(canvasWidth);
viewportHasHScroll = (canvasWidth > viewportW - scrollbarDimensions.width);
}

0 comments on commit 954aa06

Please sign in to comment.