Dialog resizing fixes