Skip to content

Commit

Permalink
implement inline border
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh8281 committed Jan 27, 2014
1 parent 882cc0b commit c2ced79
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 58 deletions.
6 changes: 6 additions & 0 deletions src/components/main/layout/block.rs
Expand Up @@ -649,6 +649,7 @@ impl Flow for BlockFlow {
// The text alignment of a block flow is the text alignment of its box's style.
self.base.flags_info.flags.set_text_align(style.Text.text_align);

box_.assign_width(remaining_width);
// Can compute padding here since we know containing block width.
box_.compute_padding(style, remaining_width);

Expand Down Expand Up @@ -739,6 +740,11 @@ impl Flow for BlockFlow {
}

fn assign_height(&mut self, ctx: &mut LayoutContext) {
//assign height for box
for box_ in self.box_.iter() {
box_.assign_height();
}

if self.is_float() {
debug!("assign_height_float: assigning height for float {}", self.base.id);
self.assign_height_float(ctx);
Expand Down

0 comments on commit c2ced79

Please sign in to comment.