From f2b1c01fccdb720f5eb2e498db32fd1bca06831f Mon Sep 17 00:00:00 2001 From: sgupta7857 Date: Mon, 13 Mar 2017 14:24:09 -0400 Subject: [PATCH] Fix for issue -1636 (#613) * Fix for issue -1636 * intent changes made * Intendentation and programming convention changes * Made changes * SidebarView fix indendation --- src/project/SidebarView.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/project/SidebarView.js b/src/project/SidebarView.js index e6506e69a..0780d8d51 100644 --- a/src/project/SidebarView.js +++ b/src/project/SidebarView.js @@ -54,10 +54,10 @@ define(function (require, exports, module) { $projectTitle, $projectFilesContainer, $workingSetViewsContainer; - var _cmdSplitNone, _cmdSplitVertical, _cmdSplitHorizontal; + var MinimumSidebarWidthPX = 200; /** * @private @@ -90,7 +90,12 @@ define(function (require, exports, module) { * Show the sidebar. */ function show() { - Resizer.show($sidebar); + // XXXBramble: don't allow the sidebar to open at less than our minimum width + if($sidebar.width() < MinimumSidebarWidthPX){ + $sidebar.width(MinimumSidebarWidthPX); + } + + Resizer.show($sidebar); } /**