Skip to content

Commit 7fe3d54

Browse files
authored
Merge pull request #826 from macr1408/pr-changes
Fix tables getting moved to other pages and breaking styles
2 parents 43ae01e + a83102c commit 7fe3d54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Html2Pdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3270,7 +3270,7 @@ protected function _tag_open_DIV($param, $other = 'div')
32703270
$this->_tag_open_BR(array());
32713271
}
32723272

3273-
if ($h < $maxH && $endY >= $maxY && !$this->_isInOverflow) {
3273+
if ($h < $maxH && $endY >= $maxY && !$this->_isInOverflow && ((!isset($param['class']) || strpos($param['class'], 'html2pdf-same-page') === false))) {
32743274
$this->_setNewPage();
32753275
}
32763276

0 commit comments

Comments
 (0)