Skip to content

Commit

Permalink
add option.ffMaxSupportedCssHeight and option.maxSupportedCssHeight (f…
Browse files Browse the repository at this point in the history
…ixes #680)
  • Loading branch information
6pac committed Jul 25, 2022
1 parent 295231a commit 6f4ae7c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ if (typeof Slick === "undefined") {
viewportSwitchToScrollModeWidthPercent: undefined,
viewportMinWidthPx: undefined,
viewportMaxWidthPx: undefined,
suppressCssChangesOnHiddenInit: false
};
suppressCssChangesOnHiddenInit: false,
ffMaxSupportedCssHeight: 6000000,
maxSupportedCssHeight: 1000000000
};

var columnDefaults = {
name: "",
Expand Down Expand Up @@ -941,7 +943,8 @@ if (typeof Slick === "undefined") {
function getMaxSupportedCssHeight() {
var supportedHeight = 1000000;
// FF reports the height back but still renders blank after ~6M px
var testUpTo = navigator.userAgent.toLowerCase().match(/firefox/) ? 6000000 : 1000000000;
//var testUpTo = navigator.userAgent.toLowerCase().match(/firefox/) ? 6000000 : 1000000000;
var testUpTo = navigator.userAgent.toLowerCase().match(/firefox/) ? options.ffMaxSupportedCssHeight : options.maxSupportedCssHeight;
var div = $("<div style='display:none' />").appendTo(document.body);

while (true) {
Expand Down

0 comments on commit 6f4ae7c

Please sign in to comment.