Ensure top margin is affects static position in particular case.

svn path=/trunk/netsurf/; revision=11262
This commit is contained in:
Michael Drake 2011-01-09 00:09:57 +00:00
parent 3368407d9e
commit fe291f87d9
1 changed files with 7 additions and 1 deletions

View File

@ -480,7 +480,13 @@ bool layout_block_context(struct box *block, int viewport_height,
/* Skip children, because they are done in the new
* block context */
goto advance_to_next_box;
}
} else if (box->type == BOX_BLOCK) {
/* This block doesn't establish a new block formatting
* context */
cy += max_pos_margin - max_neg_margin;
box->y += max_pos_margin - max_neg_margin;
max_pos_margin = max_neg_margin = 0;
}
LOG(("box %p, cx %i, cy %i", box, cx, cy));