Fixes part of #8993 -- the window would grow slightly on every re-launch because the size was set before the UI was fully initialized.