Properly calculating the height of the 'document_view'.