Fix bug regarding height not defaulting properly to document height.