Features - pageResize: Fix case where the row height is found to be 0

This fixes #188
pull/192/head
Allan Jardine 10 years ago
parent adb2993996
commit 0ba5145ff8

@ -80,7 +80,7 @@ PageResize.prototype = {
var drawRows = Math.floor( availableHeight / rowHeight ); var drawRows = Math.floor( availableHeight / rowHeight );
if ( drawRows !== dt.page.len() ) { if ( ! isNaN( drawRows ) && drawRows !== Infinity && drawRows !== dt.page.len() ) {
dt.page.len( drawRows ).draw(); dt.page.len( drawRows ).draw();
} }
}, },

Loading…
Cancel
Save