Commit ad099bb6 authored by Fred Chasen's avatar Fred Chasen

Adjust the preBreakToken if there are elements already rendered

parent 59191637
Pipeline #578 passed with stage
in 4 minutes and 24 seconds
......@@ -72,6 +72,10 @@ class Layout {
let length = 0;
let prevBreakToken = breakToken || new BreakToken(start);
// Check for adjustments in beforeLayout
if (wrapper.firstChild) {
prevBreakToken = new BreakToken(wrapper.firstChild);
}
while (!done && !newBreakToken) {
next = walker.next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment