mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Whenever a pane is added or removed, the editorUI is refreshed.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user