Fix a bug where a dialog could potentially display overlapping text in landscape (reported on iOS 6)