I was try to make dialog with auto layout, but turns out the size is the same as xib file designed. How to solve this?