The main pane always exists so it is independent of plugin load order.

This commit is contained in:
Corey Johnson
2011-09-26 17:27:57 -07:00
parent a7c9567fe2
commit 9bb92a4dd5
2 changed files with 4 additions and 4 deletions

View File

@@ -59,9 +59,7 @@
<body>
<div id='app-horizontal'>
<div id='app-vertical'>
<div class='main pane'>
<div id="editor"></div>
</div>
<div class='main'></div>
</div>
</div>
</body>

View File

@@ -19,7 +19,9 @@ class Pane
el.append @html
switch @position
when 'top', 'main'
when 'main'
$('.main').replaceWith el
when 'top'
verticalDiv.prepend el
when 'left'
horizontalDiv.prepend el