Output/Element.php
/**
     * Calculates start row from element style settings.
     *
     * @param mixed $len
     * @access protected
     * @return int
     */
Calculates start row from element style settings.
@param mixed $len
@access protected
@return int
Calculates start row from element style settings . @param mixed $len @access protected @return int
protected function _getStartRow($len = 1)
    {
        $top      = $this->getStyle('top');
        $bottom   = $this->getStyle('bottom');
        $position = $this->getStyle('position');
        $size     = $this->getSize();
        if ($position == 'fixed') {
            if ($top !== null) {
                if (substr($top, -1) == '%') {
                    $top = substr($top, 0, -1) / 100;
                    $top = ceil($size['row'] * $top);
                }
                $row = $top + 1;
            } elseif ($bottom !== null) {
                if (substr($bottom, -1) == '%') {
                    $bottom = substr($bottom, 0, -1) / 100;
                    $bottom = ceil($size['row'] * $bottom);
                }
                $row = $size['row'] - $bottom;
            }
        } else {
            $row = false;
        }
        return $row;
    }
protected function _getStartRow ( $ len = 1 ) { $ top = $ this -> getStyle ( 'top' ) ; $ bottom = $ this -> getStyle ( 'bottom' ) ; $ position = $ this -> getStyle ( 'position' ) ; $ size = $ this -> getSize ( ) ; if ( $ position == 'fixed' ) { if ( $ top !== null ) { if ( substr ( $ top , - 1 ) == '%' ) { $ top = substr ( $ top , 0 , - 1 ) / 100 ; $ top = ceil ( $ size [ 'row' ] * $ top ) ; } $ row = $ top + 1 ; } elseif ( $ bottom !== null ) { if ( substr ( $ bottom , - 1 ) == '%' ) { $ bottom = substr ( $ bottom , 0 , - 1 ) / 100 ; $ bottom = ceil ( $ size [ 'row' ] * $ bottom ) ; } $ row = $ size [ 'row' ] - $ bottom ; } } else { $ row = false ; } return $ row ; }
Calculates start row from element style settings.
Calculates start row from element style settings .