dialogs resize on a window resize