Skip to content

Commit

Permalink
Fix bug in debug code added to Rest.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
edhager committed Aug 29, 2016
1 parent 83e58c4 commit 2f81f3e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/Rest.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@

function gridContentHeight() {
var contentHeight = 0;
grid.contentNode.childNodes.forEach(function (node) {
contentHeight += node.offsetHeight;
});
var childNodes = grid.contentNode.childNodes;
var len = childNodes.length;
for (var i = 0; i < len; i++) {
contentHeight += childNodes[i].offsetHeight;
}
return contentHeight;
}

Expand Down

0 comments on commit 2f81f3e

Please sign in to comment.