Don't resize window for modal bar until after query text is set

This is for #8254 (issue number in branch name is incorrect).

Original fix resizes editor after File button is resized. This delays resizing until after query string is also changed.