adobe/brackets — pull request #1811 by jbalsas (2012-10-11 00:48:10+00:00)
Title: Sidebar resize refactorization

Hi,

Following the inclussion of `utils/Resizer` in https://github.com/adobe/brackets/pull/1661, I've refactored `project/SideBarView` to use the existing code.

I've added a new `toggleVisibility` API in `Resizer`. This can be called for any resizable panel. Panels with a class `collapsable` are also toggled when double clicking on their resize handler. Resizable panels also dispatch now `panelCollapsed` and `panelExpanded` when changing from one state into another.

This pull request includes also some fixes for the current sidebar resize behavior (which could be merged independently if this whole refactorization is not really required):
* The resize handler changes to default when going over the CodeMirror gutter space
* While resizing, if we take the mouse out of the Brackets window and then release it, when entering again, the resize action is still going
* If the sidebar is hidden, slowly trying to resize it to the left out of the window produces strange behaviors (possibly related to the one above)