Reposition dialogs when window is resized