Whenever a pane is added or removed, the editorUI is refreshed.

This commit is contained in:
Corey Johnson
2011-09-02 18:00:21 -07:00
parent 23e4be9f7d
commit b7f562dd32

View File

@@ -3,6 +3,7 @@
$ = require 'jquery'
_ = require 'underscore'
jscocoa = require 'jscocoa'
Editor = require 'editor'
# Handles the UI chrome
Chrome =
@@ -14,6 +15,9 @@ Chrome =
el.setAttribute 'class', "pane " + position
el.innerHTML = html
el.addEventListener('DOMNodeInsertedIntoDocument', Editor.resize, false);
el.addEventListener('DOMNodeRemovedFromDocument', Editor.resize, false);
switch position
when 'top', 'main'
verticalDiv.prepend el