adjusts initial width of document view based on container div in given viewport