prevent Dialog from being uncloseable with long text #8475

Merged
merged 2 commits into from Apr 28, 2017