calculate DocView content size