Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #481 from adobe/randy-issue-444
Browse files Browse the repository at this point in the history
Randy issue 444
  • Loading branch information
chrisbank committed Mar 21, 2012
2 parents c1ca4d7 + 4d12e74 commit e33361b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/ProjectManager.js
Expand Up @@ -233,6 +233,12 @@ define(function (require, exports, module) {
result.resolve();
}
}
)
.bind(
"loaded.jstree open_node.jstree close_node.jstree",
function (event, data) {
ViewUtils.updateChildrenToParentScrollwidth($("#project-files-container"));
}
);

// jstree has a default event handler for dblclick that attempts to clear the
Expand All @@ -251,11 +257,7 @@ define(function (require, exports, module) {
}
});
});

result.always(function () {
ViewUtils.updateChildrenToParentScrollwidth($("#project-files-container"));
});


return result;
}

Expand Down Expand Up @@ -360,8 +362,6 @@ define(function (require, exports, module) {
treeNode.removeClass("jstree-leaf jstree-closed jstree-open")
.addClass(classToAdd);
}

ViewUtils.updateChildrenToParentScrollwidth($("#project-files-container"));
},
function (error) {
Dialogs.showModalDialog(
Expand Down
2 changes: 1 addition & 1 deletion src/styles/jsTreeTheme.less
Expand Up @@ -27,7 +27,7 @@
.jstree-brackets li > a {
padding-left: @spriteSize18 + 10000;
margin-left: -10000px;
width: 100%;
display: block;
}

.jstree li {
Expand Down

0 comments on commit e33361b

Please sign in to comment.