Ace re-render after closing control panel

Switch order of call to the Ace editor control rendering function after
the control panel is closed. Before I was trying to do a re-render
before the control panel was hidden (thus the Ace editor was not showing
at the time). Wait until it's visible before doing a re-render. Certain
themes / font sizes require a full re-render to occur so that things
like scroll bars are set properly and such.