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

Show correct current document in the working set after opening Brackets with sidebar closed. #3719

Merged
merged 2 commits into from
May 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/project/SidebarView.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ define(function (require, exports, module) {
});

$sidebar.on("panelExpanded", function (evt, width) {
WorkingSetView.refresh();
$sidebar.find(".sidebar-selection").width(width);
$sidebar.find(".scroller-shadow").css("display", "block");
$sidebar.find(".sidebar-selection-triangle").css("left", width);
Expand Down
7 changes: 6 additions & 1 deletion src/project/WorkingSetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ define(function (require, exports, module) {
_rebuildWorkingSet();
}

function refresh() {
_redraw();
}

function create(element) {
// Init DOM element
$openFilesContainer = element;
Expand Down Expand Up @@ -602,5 +606,6 @@ define(function (require, exports, module) {
_redraw();
}

exports.create = create;
exports.create = create;
exports.refresh = refresh;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: add a Tab or 2 to vertically line up the equal signs.

});