Make sure the document view's frame is integral to avoid weird scrolling behavior.