Skip to content

Commit c0a4f26

Browse files
yulian-gaponenkoitext-teamcity
authored andcommitted
Add new tests for floats splitting edgecases
DEVSIX-1267 Autoported commit. Original commit hash: [a30b527d4]
1 parent 76b331a commit c0a4f26

File tree

12 files changed

+462
-5
lines changed

12 files changed

+462
-5
lines changed

itext.tests/itext.layout.tests/itext/layout/FloatTest.cs

Lines changed: 461 additions & 1 deletion
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

itext/itext.layout/itext/layout/renderer/BlockRenderer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ public override LayoutResult Layout(LayoutContext layoutContext) {
142142
LayoutResult result;
143143
childRenderer.SetParent(this);
144144
MarginsCollapseInfo childMarginsInfo = null;
145-
// TODO process correctly for floats with clear
146145
if (!waitingOverflowFloatRenderers.IsEmpty() && FloatingHelper.IsClearanceApplied(waitingOverflowFloatRenderers
147146
, childRenderer.GetProperty<ClearPropertyValue?>(Property.CLEAR))) {
148147
if (marginsCollapsingEnabled && !isCellRenderer) {
@@ -394,7 +393,6 @@ public override LayoutResult Layout(LayoutContext layoutContext) {
394393
ApplyVerticalAlignment();
395394
FloatingHelper.RemoveFloatsAboveRendererBottom(floatRendererAreas, this);
396395
if (!waitingOverflowFloatRenderers.IsEmpty()) {
397-
// TODO what if overflow renderer is not null already?
398396
overflowRenderer_1 = CreateOverflowRenderer(LayoutResult.PARTIAL);
399397
overflowRenderer_1.GetChildRenderers().AddAll(waitingOverflowFloatRenderers);
400398
}

0 commit comments

Comments
 (0)