Skip to content

Commit

Permalink
Fixes nasty bug meaning that positioned elements were being output tw…
Browse files Browse the repository at this point in the history
…ice.

+ Does this by adding a test to see if the element already has an element as this method (BlockBox::layout) is called recursively for postioned elements.
+ Updates the absolute test that was broken by no longer overprinting the absolute positioned element.
  • Loading branch information
danfickle committed Sep 7, 2018
1 parent 3c20893 commit 87dc1a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ public void layout(LayoutContext c, int contentStart) {
}
c.getRootLayer().addPage(c);
}
} else if (style.requiresLayer()) {
} else if (style.requiresLayer() && this.getLayer() == null) {
pushedLayer = true;
c.pushLayer(this);
}
Expand Down
Binary file not shown.

0 comments on commit 87dc1a9

Please sign in to comment.