Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cde4ca9

Browse files
authored
Revert "fixed break token on tr of table"
1 parent a5c857d commit cde4ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chunker/layout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ class Layout {
547547
let right = Math.floor(pos.right);
548548
let top = Math.round(pos.top);
549549
let bottom = Math.floor(pos.bottom);
550-
// Check if it overflow, the right of Rect is bounds.right + gap + bounds.width when tr break of table,so add || (right >= end && node.tagName === "TR")
551-
if (!range && (left >= end || top >= vEnd || (right >= end && node.tagName === "TR"))) {
550+
551+
if (!range && (left >= end || top >= vEnd)) {
552552
// Check if it is a float
553553
let isFloat = false;
554554

0 commit comments

Comments
 (0)