Probably make modal dialogs not disappear offscreen