src/Mpdf.php
function GetFloatDivInfo($blklvl = 0, $clear = false)
	{
		// If blklvl specified, only returns floats at that level - for ClearFloats
		$l_exists = false;
		$r_exists = false;
		$l_max = 0;
		$r_max = 0;
		$l_width = 0;
		$r_width = 0;
		if (count($this->floatDivs)) {
			$currpos = ($this->page * 1000 + $this->y);
			foreach ($this->floatDivs as $f) {
				if (($clear && $f['blockContext'] == $this->blk[$blklvl]['blockContext']) || (!$clear && $currpos >= $f['startpos'] && $currpos < ($f['endpos'] - 0.001) && $f['blklvl'] > $blklvl && $f['blockContext'] == $this->blk[$blklvl]['blockContext'])) {
					if ($f['side'] == 'L') {
						$l_exists = true;
						$l_max = max($l_max, $f['endpos']);
						$l_width = max($l_width, $f['w']);
					}
					if ($f['side'] == 'R') {
						$r_exists = true;
						$r_max = max($r_max, $f['endpos']);
						$r_width = max($r_width, $f['w']);
					}
				}
			}
		}
		return [$l_exists, $r_exists, $l_max, $r_max, $l_width, $r_width];
	}
function GetFloatDivInfo($blklvl = 0, $clear = false)
	{
		// If blklvl specified, only returns floats at that level - for ClearFloats
		$l_exists = false;
		$r_exists = false;
		$l_max = 0;
		$r_max = 0;
		$l_width = 0;
		$r_width = 0;
		if (count($this->floatDivs)) {
			$currpos = ($this->page * 1000 + $this->y);
			foreach ($this->floatDivs as $f) {
				if (($clear && $f['blockContext'] == $this->blk[$blklvl]['blockContext']) || (!$clear && $currpos >= $f['startpos'] && $currpos < ($f['endpos'] - 0.001) && $f['blklvl'] > $blklvl && $f['blockContext'] == $this->blk[$blklvl]['blockContext'])) {
					if ($f['side'] == 'L') {
						$l_exists = true;
						$l_max = max($l_max, $f['endpos']);
						$l_width = max($l_width, $f['w']);
					}
					if ($f['side'] == 'R') {
						$r_exists = true;
						$r_max = max($r_max, $f['endpos']);
						$r_width = max($r_width, $f['w']);
					}
				}
			}
		}
		return [$l_exists, $r_exists, $l_max, $r_max, $l_width, $r_width];
	}
function GetFloatDivInfo ( $ blklvl = 0 , $ clear = false ) { // If blklvl specified, only returns floats at that level - for ClearFloats $ l_exists = false ; $ r_exists = false ; $ l_max = 0 ; $ r_max = 0 ; $ l_width = 0 ; $ r_width = 0 ; if ( count ( $ this -> floatDivs ) ) { $ currpos = ( $ this -> page * 1000 + $ this -> y ) ; foreach ( $ this -> floatDivs as $ f ) { if ( ( $ clear && $ f [ 'blockContext' ] == $ this -> blk [ $ blklvl ] [ 'blockContext' ] ) || ( ! $ clear && $ currpos >= $ f [ 'startpos' ] && $ currpos < ( $ f [ 'endpos' ] - 0.001 ) && $ f [ 'blklvl' ] > $ blklvl && $ f [ 'blockContext' ] == $ this -> blk [ $ blklvl ] [ 'blockContext' ] ) ) { if ( $ f [ 'side' ] == 'L' ) { $ l_exists = true ; $ l_max = max ( $ l_max , $ f [ 'endpos' ] ) ; $ l_width = max ( $ l_width , $ f [ 'w' ] ) ; } if ( $ f [ 'side' ] == 'R' ) { $ r_exists = true ; $ r_max = max ( $ r_max , $ f [ 'endpos' ] ) ; $ r_width = max ( $ r_width , $ f [ 'w' ] ) ; } } } } return [ $ l_exists , $ r_exists , $ l_max , $ r_max , $ l_width , $ r_width ] ; }
Added mPDF 3.0 Float DIV
Added mPDF 3 . 0 Float DIV