Fix dialog resize.