Skip to content

Commit

Permalink
auto merge of #1255 : recrack/servo/fix_compute_height, r=metajack
Browse files Browse the repository at this point in the history
Thanks @metajack
  • Loading branch information
bors-servo committed Nov 14, 2013
2 parents b176265 + ff84a4f commit 603ba7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/main/layout/block.rs
Expand Up @@ -212,9 +212,10 @@ impl BlockFlow {
for &box in self.box.iter() {
let base = box.base();
let style = base.style();
let maybe_height = MaybeAuto::from_style(style.Box.height, Au::new(0));
let maybe_height = maybe_height.specified_or_zero();
height = geometry::max(height, maybe_height);
height = match MaybeAuto::from_style(style.Box.height, Au::new(0)) {
Auto => height,
Specified(value) => value
};
}

let mut noncontent_height = Au::new(0);
Expand All @@ -238,7 +239,6 @@ impl BlockFlow {
model.margin.bottom;
}

//TODO(eatkinson): compute heights using the 'height' property.
self.base.position.size.height = height + noncontent_height;

if inorder {
Expand Down

0 comments on commit 603ba7a

Please sign in to comment.