Rename File Error when Copy/Past Index.html content to file tree (#573)

* Fix Issue with file disappearance upon renaming error

* Fix Issue File Dissapear Upon Incorrect Rename

* Fix Issue File Dissapear Upon Incorrect Rename

* added comment

* Comment Fix
This commit is contained in:
davidhuang1550 2017-02-08 17:44:33 -05:00 коммит произвёл Gideon Thomas
Родитель f890aa1943
Коммит 5dbb556826
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -635,7 +635,8 @@ define(function (require, exports, module) {
if (!projectRoot) {
return;
}
model.setScrollerInfo($projectTreeContainer[0].scrollWidth, $projectTreeContainer.scrollTop(), $projectTreeContainer.scrollLeft(), $projectTreeContainer.offset().top);
//XXXbramble: We don't want to allow the user to scroll off the right, hiding the files
model.setScrollerInfo($projectTreeContainer[0].scrollWidth, $projectTreeContainer.scrollTop(), 0, $projectTreeContainer.offset().top);
FileTreeView.render(fileTreeViewContainer, model._viewModel, projectRoot, actionCreator, forceRender, brackets.platform);
};