src/Mpdf.php
function _advanceFloatMargins()
	{
		// Update floatmargins - L
		if (isset($this->floatmargins['L']) && $this->floatmargins['L']['skipline'] && $this->floatmargins['L']['y0'] != $this->y) {
			$yadj = $this->y - $this->floatmargins['L']['y0'];
			$this->floatmargins['L']['y0'] = $this->y;
			$this->floatmargins['L']['y1'] += $yadj;

			// Update objattr in floatbuffer
			if ($this->floatbuffer[$this->floatmargins['L']['id']]['border_left']['w']) {
				$this->floatbuffer[$this->floatmargins['L']['id']]['BORDER-Y'] += $yadj;
			}
			$this->floatbuffer[$this->floatmargins['L']['id']]['INNER-Y'] += $yadj;
			$this->floatbuffer[$this->floatmargins['L']['id']]['OUTER-Y'] += $yadj;

			// Unset values
			$this->floatbuffer[$this->floatmargins['L']['id']]['skipline'] = false;
			$this->floatmargins['L']['skipline'] = false;
			$this->floatmargins['L']['id'] = '';
		}
		// Update floatmargins - R
		if (isset($this->floatmargins['R']) && $this->floatmargins['R']['skipline'] && $this->floatmargins['R']['y0'] != $this->y) {
			$yadj = $this->y - $this->floatmargins['R']['y0'];
			$this->floatmargins['R']['y0'] = $this->y;
			$this->floatmargins['R']['y1'] += $yadj;

			// Update objattr in floatbuffer
			if ($this->floatbuffer[$this->floatmargins['R']['id']]['border_left']['w']) {
				$this->floatbuffer[$this->floatmargins['R']['id']]['BORDER-Y'] += $yadj;
			}
			$this->floatbuffer[$this->floatmargins['R']['id']]['INNER-Y'] += $yadj;
			$this->floatbuffer[$this->floatmargins['R']['id']]['OUTER-Y'] += $yadj;

			// Unset values
			$this->floatbuffer[$this->floatmargins['R']['id']]['skipline'] = false;
			$this->floatmargins['R']['skipline'] = false;
			$this->floatmargins['R']['id'] = '';
		}
	}
function _advanceFloatMargins()
	{
		// Update floatmargins - L
		if (isset($this->floatmargins['L']) && $this->floatmargins['L']['skipline'] && $this->floatmargins['L']['y0'] != $this->y) {
			$yadj = $this->y - $this->floatmargins['L']['y0'];
			$this->floatmargins['L']['y0'] = $this->y;
			$this->floatmargins['L']['y1'] += $yadj;

			// Update objattr in floatbuffer
			if ($this->floatbuffer[$this->floatmargins['L']['id']]['border_left']['w']) {
				$this->floatbuffer[$this->floatmargins['L']['id']]['BORDER-Y'] += $yadj;
			}
			$this->floatbuffer[$this->floatmargins['L']['id']]['INNER-Y'] += $yadj;
			$this->floatbuffer[$this->floatmargins['L']['id']]['OUTER-Y'] += $yadj;

			// Unset values
			$this->floatbuffer[$this->floatmargins['L']['id']]['skipline'] = false;
			$this->floatmargins['L']['skipline'] = false;
			$this->floatmargins['L']['id'] = '';
		}
		// Update floatmargins - R
		if (isset($this->floatmargins['R']) && $this->floatmargins['R']['skipline'] && $this->floatmargins['R']['y0'] != $this->y) {
			$yadj = $this->y - $this->floatmargins['R']['y0'];
			$this->floatmargins['R']['y0'] = $this->y;
			$this->floatmargins['R']['y1'] += $yadj;

			// Update objattr in floatbuffer
			if ($this->floatbuffer[$this->floatmargins['R']['id']]['border_left']['w']) {
				$this->floatbuffer[$this->floatmargins['R']['id']]['BORDER-Y'] += $yadj;
			}
			$this->floatbuffer[$this->floatmargins['R']['id']]['INNER-Y'] += $yadj;
			$this->floatbuffer[$this->floatmargins['R']['id']]['OUTER-Y'] += $yadj;

			// Unset values
			$this->floatbuffer[$this->floatmargins['R']['id']]['skipline'] = false;
			$this->floatmargins['R']['skipline'] = false;
			$this->floatmargins['R']['id'] = '';
		}
	}
function _advanceFloatMargins ( ) { // Update floatmargins - L if ( isset ( $ this -> floatmargins [ 'L' ] ) && $ this -> floatmargins [ 'L' ] [ 'skipline' ] && $ this -> floatmargins [ 'L' ] [ 'y0' ] != $ this -> y ) { $ yadj = $ this -> y - $ this -> floatmargins [ 'L' ] [ 'y0' ] ; $ this -> floatmargins [ 'L' ] [ 'y0' ] = $ this -> y ; $ this -> floatmargins [ 'L' ] [ 'y1' ] += $ yadj ; // Update objattr in floatbuffer if ( $ this -> floatbuffer [ $ this -> floatmargins [ 'L' ] [ 'id' ] ] [ 'border_left' ] [ 'w' ] ) { $ this -> floatbuffer [ $ this -> floatmargins [ 'L' ] [ 'id' ] ] [ 'BORDER-Y' ] += $ yadj ; } $ this -> floatbuffer [ $ this -> floatmargins [ 'L' ] [ 'id' ] ] [ 'INNER-Y' ] += $ yadj ; $ this -> floatbuffer [ $ this -> floatmargins [ 'L' ] [ 'id' ] ] [ 'OUTER-Y' ] += $ yadj ; // Unset values $ this -> floatbuffer [ $ this -> floatmargins [ 'L' ] [ 'id' ] ] [ 'skipline' ] = false ; $ this -> floatmargins [ 'L' ] [ 'skipline' ] = false ; $ this -> floatmargins [ 'L' ] [ 'id' ] = '' ; } // Update floatmargins - R if ( isset ( $ this -> floatmargins [ 'R' ] ) && $ this -> floatmargins [ 'R' ] [ 'skipline' ] && $ this -> floatmargins [ 'R' ] [ 'y0' ] != $ this -> y ) { $ yadj = $ this -> y - $ this -> floatmargins [ 'R' ] [ 'y0' ] ; $ this -> floatmargins [ 'R' ] [ 'y0' ] = $ this -> y ; $ this -> floatmargins [ 'R' ] [ 'y1' ] += $ yadj ; // Update objattr in floatbuffer if ( $ this -> floatbuffer [ $ this -> floatmargins [ 'R' ] [ 'id' ] ] [ 'border_left' ] [ 'w' ] ) { $ this -> floatbuffer [ $ this -> floatmargins [ 'R' ] [ 'id' ] ] [ 'BORDER-Y' ] += $ yadj ; } $ this -> floatbuffer [ $ this -> floatmargins [ 'R' ] [ 'id' ] ] [ 'INNER-Y' ] += $ yadj ; $ this -> floatbuffer [ $ this -> floatmargins [ 'R' ] [ 'id' ] ] [ 'OUTER-Y' ] += $ yadj ; // Unset values $ this -> floatbuffer [ $ this -> floatmargins [ 'R' ] [ 'id' ] ] [ 'skipline' ] = false ; $ this -> floatmargins [ 'R' ] [ 'skipline' ] = false ; $ this -> floatmargins [ 'R' ] [ 'id' ] = '' ; } }
Update values if set to skipline
Update values if set to skipline