Skip to content
Browse files

Use a more robust way to determine if a window currently has scroll b…

…ars.
  • Loading branch information...
1 parent a9bb021 commit b5142064a4b838f153ecc5a2fdaeb97c968459cb @stephenbez committed Mar 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tilava-table.js
View
2 tilava-table.js
@@ -199,7 +199,7 @@ TilavaTable.prototype.updateUI = function() {
};
function windowCurrentlyHasScrollBars() {
- return document.body.scrollHeight != window.innerHeight;
+ return document.body.scrollHeight > document.body.clientHeight;
}
TilavaTable.prototype.displayRecords = function(startIndex) {

0 comments on commit b514206

Please sign in to comment.
Something went wrong with that request. Please try again.