Bug 994725 - Correctly reset height when SystemDialogs are shown