From 8cd9a6ba87e6d7abb730d50c6d1da5d120a09056 Mon Sep 17 00:00:00 2001 From: Junyoung Cho Date: Fri, 23 Aug 2013 18:32:18 +0900 Subject: [PATCH] Fix the line-height error in a multi-line page --- src/components/main/layout/inline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/main/layout/inline.rs b/src/components/main/layout/inline.rs index 44d5595444e..892cc532b63 100644 --- a/src/components/main/layout/inline.rs +++ b/src/components/main/layout/inline.rs @@ -863,7 +863,7 @@ impl InlineFlowData { 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; } // End of `lines.each` loop.