зеркало из https://github.com/mozilla/brackets.git
Fix for issue -1636 (#613)
* Fix for issue -1636 * intent changes made * Intendentation and programming convention changes * Made changes * SidebarView fix indendation
This commit is contained in:
Родитель
de373ef49a
Коммит
f2b1c01fcc
|
@ -54,10 +54,10 @@ define(function (require, exports, module) {
|
||||||
$projectTitle,
|
$projectTitle,
|
||||||
$projectFilesContainer,
|
$projectFilesContainer,
|
||||||
$workingSetViewsContainer;
|
$workingSetViewsContainer;
|
||||||
|
|
||||||
var _cmdSplitNone,
|
var _cmdSplitNone,
|
||||||
_cmdSplitVertical,
|
_cmdSplitVertical,
|
||||||
_cmdSplitHorizontal;
|
_cmdSplitHorizontal;
|
||||||
|
var MinimumSidebarWidthPX = 200;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
@ -90,7 +90,12 @@ define(function (require, exports, module) {
|
||||||
* Show the sidebar.
|
* Show the sidebar.
|
||||||
*/
|
*/
|
||||||
function show() {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче