Fix the line-height error in a multi-line page

This commit is contained in:
Junyoung Cho 2013-08-23 18:32:18 +09:00
parent 672d7f1c31
commit 8cd9a6ba87

View file

@ -863,7 +863,7 @@ impl InlineFlowData {
base.position.origin.y = base.position.origin.y + adjust_offset; base.position.origin.y = base.position.origin.y + adjust_offset;
} }
} }
line_height_offset = topmost + bottommost - line.bounds.size.height; line_height_offset = line_height_offset + topmost + bottommost - line.bounds.size.height;
line.bounds.size.height = topmost + bottommost; line.bounds.size.height = topmost + bottommost;
} // End of `lines.each` loop. } // End of `lines.each` loop.