src/Parsing/Css.php
public function getLastHeight($mode = false)
    {
        for ($k=count($this->table)-1; $k>=0; $k--) {
            if ($this->table[$k]['height']) {
                $h = $this->table[$k]['height'];
                if ($mode) {
                    $h+= $this->table[$k]['border']['t']['width'] + $this->table[$k]['padding']['t'] + 0.02;
                    $h+= $this->table[$k]['border']['b']['width'] + $this->table[$k]['padding']['b'] + 0.02;
                }
                return $h;
            }
        }
        return $this->pdf->getH() - $this->pdf->gettMargin() - $this->pdf->getbMargin();
    }
public function getLastHeight($mode = false)
    {
        for ($k=count($this->table)-1; $k>=0; $k--) {
            if ($this->table[$k]['height']) {
                $h = $this->table[$k]['height'];
                if ($mode) {
                    $h+= $this->table[$k]['border']['t']['width'] + $this->table[$k]['padding']['t'] + 0.02;
                    $h+= $this->table[$k]['border']['b']['width'] + $this->table[$k]['padding']['b'] + 0.02;
                }
                return $h;
            }
        }
        return $this->pdf->getH() - $this->pdf->gettMargin() - $this->pdf->getbMargin();
    }
public function getLastHeight ( $ mode = false ) { for ( $ k = count ( $ this -> table ) - 1 ; $ k >= 0 ; $ k -- ) { if ( $ this -> table [ $ k ] [ 'height' ] ) { $ h = $ this -> table [ $ k ] [ 'height' ] ; if ( $ mode ) { $ h += $ this -> table [ $ k ] [ 'border' ] [ 't' ] [ 'width' ] + $ this -> table [ $ k ] [ 'padding' ] [ 't' ] + 0.02 ; $ h += $ this -> table [ $ k ] [ 'border' ] [ 'b' ] [ 'width' ] + $ this -> table [ $ k ] [ 'padding' ] [ 'b' ] + 0.02 ; } return $ h ; } } return $ this -> pdf -> getH ( ) - $ this -> pdf -> gettMargin ( ) - $ this -> pdf -> getbMargin ( ) ; }
Get the height of the parent

@param  boolean $mode true => adding padding and border

@return float height in mm
Get the height of the parent