From e4ecb2b8f0e30c4099c1740baea5dde72202c685 Mon Sep 17 00:00:00 2001 From: spipu Date: Thu, 18 May 2017 16:24:26 +0200 Subject: [PATCH] fix margin-bottom on table https://github.com/spipu/html2pdf/issues/108 --- CHANGELOG.md | 1 + src/Html2Pdf.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7edc192..dd32c7a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. * fix issue from https://github.com/spipu/html2pdf/pull/177 * fix issue from https://github.com/spipu/html2pdf/pull/163 * fix bug on div position https://github.com/spipu/html2pdf/issues/73 + * fix margin-bottom on table https://github.com/spipu/html2pdf/issues/108 ## [4.6.0] - 2016-03-30 diff --git a/src/Html2Pdf.php b/src/Html2Pdf.php index 204e7b12..6d7bc795 100755 --- a/src/Html2Pdf.php +++ b/src/Html2Pdf.php @@ -5167,6 +5167,8 @@ protected function _tag_close_TABLE($param) $y = self::$_tables[$param['num']]['curr_y']; } + $y+= $this->parsingCss->value['margin']['b']; + $this->_maxX = max($this->_maxX, $x); $this->_maxY = max($this->_maxY, $y);