BUG: fix broken layout change

Need to process events so the layout manager has a chance
to create the viewers of the correct size.  If not, it seems
the viewers and layouts can become wedged and unable to
recover at all.