Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Account for the padding on the container.

  • Loading branch information...
commit 6ae8dbff23b241759224825604b7c38de643af6b 1 parent 0b69e8a
@mleibman authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  slick.grid.js
View
2  slick.grid.js
@@ -1497,6 +1497,8 @@ if (typeof Slick === "undefined") {
function getViewportHeight() {
return parseFloat($.css($container[0], "height", true)) -
+ parseFloat($.css($container[0], "paddingTop", true)) -
+ parseFloat($.css($container[0], "paddingBottom", true)) -
parseFloat($.css($headerScroller[0], "height")) - getVBoxDelta($headerScroller) -
(options.showTopPanel ? options.topPanelHeight + getVBoxDelta($topPanelScroller) : 0) -
(options.showHeaderRow ? options.headerRowHeight + getVBoxDelta($headerRowScroller) : 0);
Please sign in to comment.
Something went wrong with that request. Please try again.