Skip to content

Commit e57cddf

Browse files
author
Pawel
committed
Fixing words being cut on page breaks
Word breaking logic will now be applied to each individual box(word/image). This way words will no longer get cut on page breaks. This may introduce a small issue. If the words in a single line have different line height, there is a possiblity of some words being placed on the next page while others stay on the previous page.
1 parent 9aafeeb commit e57cddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/HtmlRenderer/Core/Dom/CssLayoutEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private static void FlowBox(RGraphics g, CssBox blockbox, CssBox box, double lim
304304
word.Left = curx;
305305
word.Top = cury;
306306

307-
if (!box.IsFixed && box.PageBreakInside == CssConstants.Avoid)
307+
if (!box.IsFixed)
308308
{
309309
word.BreakPage();
310310
}

0 commit comments

Comments
 (0)