original_string: protected function _calculate_content_height()
      {
          $height = 0;
          $lines = $this->_frame->get_line_boxes();
          if (count($lines) > 0) {
              $last_line = end($lines);
              $content_box = $this->_frame->get_content_box();
              $height = $last_line->y + $last_line->h - $content_box["y"];
          }
          return $height;
      }
code: protected function _calculate_content_height()
      {
          $height = 0;
          $lines = $this->_frame->get_line_boxes();
          if (count($lines) > 0) {
              $last_line = end($lines);
              $content_box = $this->_frame->get_content_box();
              $height = $last_line->y + $last_line->h - $content_box["y"];
          }
          return $height;
      }
code_tokens: protected function _calculate_content_height ( ) { $ height = 0 ; $ lines = $ this -> _frame -> get_line_boxes ( ) ; if ( count ( $ lines ) > 0 ) { $ last_line = end ( $ lines ) ; $ content_box = $ this -> _frame -> get_content_box ( ) ; $ height = $ last_line -> y + $ last_line -> h - $ content_box [ "y" ] ; } return $ height ; }
docstring: Determine the unrestricted height of content within the block
  not by adding each line's height, but by getting the last line's position.
  This because lines could have been pushed lower by a clearing element.
  
  @return float
docstring_tokens: Determine the unrestricted height of content within the block not by adding each line s height but by getting the last line s position . This because lines could have been pushed lower by a clearing element .