Permalink
Browse files

Fix logic for setting tree children height so it works when hidden, f…

…ixes #140
  • Loading branch information...
1 parent 4b55763 commit 7ca0963ce411c226141c6a0e17ea4f11eb6bf24e @kriszyp committed May 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tree.js
View
@@ -93,7 +93,8 @@ return function(column){
}) :
grid.renderArray(query({}), preloadNode),
function(){
- container.style.height = container.scrollHeight + "px";
+ var scrollHeight = container.scrollHeight;
+ container.style.height = scrollHeight ? scrollHeight + "px" : "auto";
});
var transitionend = function(event){
var height = this.style.height;

0 comments on commit 7ca0963

Please sign in to comment.