Resizable dialog works correctly