Skip to content

Commit

Permalink
layout: Take the position of InlineFlows in account when determining
Browse files Browse the repository at this point in the history
the baseline offset of the last line box in flow.

This caused incorrect layouts in some cases.
  • Loading branch information
pcwalton committed Oct 11, 2016
1 parent 1996045 commit 7bf06ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/layout/flow.rs
Expand Up @@ -1401,7 +1401,7 @@ impl<'a> ImmutableFlowUtils for &'a Flow {
for kid in base(self).children.iter().rev() {
if kid.is_inline_flow() {
if let Some(baseline_offset) = kid.as_inline().baseline_offset_of_last_line() {
return Some(baseline_offset)
return Some(base(kid).position.start.b + baseline_offset)
}
}
if kid.is_block_like() &&
Expand Down

0 comments on commit 7bf06ed

Please sign in to comment.