adjust jQuery resize for dialog in documents (refs #4045)