Redraw editors when panel appears

If not done, the editors have zero height.
This commit is contained in:
probablycorey
2013-04-26 12:05:19 -07:00
committed by Corey Johnson & Kevin Sawicki
parent 2d5bb8bd8b
commit 655fec2f18

View File

@@ -52,6 +52,8 @@ class ConfigView extends View
@panels.children().hide()
@panelMenu.children('.active').removeClass('active')
@panelsByName[name].show()
for editorElement in @panelsByName[name].find(".editor")
$(editorElement).view().redraw()
@panelMenu.children("[name='#{name}']").addClass('active')
@activePanelName = name
@panelToShow = null