From c301f463ecca3b179d87f80ab124ff9df621f465 Mon Sep 17 00:00:00 2001 From: Jeffrey Fisher Date: Sat, 4 May 2013 23:45:39 -0700 Subject: [PATCH 1/2] Fix to make the sidebar correctly highlight the current document upon Brackets launch, after closing Brackets with the sidebar closed. --- src/project/SidebarView.js | 1 + src/project/WorkingSetView.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/project/SidebarView.js b/src/project/SidebarView.js index 07ecd59271c..7a35ecfab44 100644 --- a/src/project/SidebarView.js +++ b/src/project/SidebarView.js @@ -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); diff --git a/src/project/WorkingSetView.js b/src/project/WorkingSetView.js index d11af5104b6..d2d5aa6ad28 100644 --- a/src/project/WorkingSetView.js +++ b/src/project/WorkingSetView.js @@ -555,6 +555,10 @@ define(function (require, exports, module) { _rebuildWorkingSet(); } + function refresh() { + _redraw(); + } + function create(element) { // Init DOM element $openFilesContainer = element; @@ -603,4 +607,5 @@ define(function (require, exports, module) { } exports.create = create; + exports.refresh = refresh; }); From 2d6cf0c890f20b470fd91d1dc2060083e38a8a71 Mon Sep 17 00:00:00 2001 From: Jeffrey Fisher Date: Thu, 9 May 2013 19:20:27 -0700 Subject: [PATCH 2/2] Added tab to fix alignment issue in code. --- src/project/WorkingSetView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/WorkingSetView.js b/src/project/WorkingSetView.js index d2d5aa6ad28..4584f8634eb 100644 --- a/src/project/WorkingSetView.js +++ b/src/project/WorkingSetView.js @@ -606,6 +606,6 @@ define(function (require, exports, module) { _redraw(); } - exports.create = create; + exports.create = create; exports.refresh = refresh; });