mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix for children of a containing block not being placed with respect to the containing block's top padding, if the containing block's first child is absolute positioned.
svn path=/trunk/netsurf/; revision=5424
This commit is contained in:
parent
3f5d902edd
commit
804a11af5b
@ -264,7 +264,7 @@ bool layout_block_context(struct box *block, struct content *content)
|
|||||||
box = margin_box = block->children;
|
box = margin_box = block->children;
|
||||||
/* set current coordinates to top-left of the block */
|
/* set current coordinates to top-left of the block */
|
||||||
cx = 0;
|
cx = 0;
|
||||||
cy = block->padding[TOP];
|
y = cy = block->padding[TOP];
|
||||||
if (box)
|
if (box)
|
||||||
box->y = block->padding[TOP];
|
box->y = block->padding[TOP];
|
||||||
|
|
||||||
@ -1618,7 +1618,7 @@ bool layout_line(struct box *first, int *width, int *y,
|
|||||||
/* + not cleared or,
|
/* + not cleared or,
|
||||||
* cleared and there are no floats to clear
|
* cleared and there are no floats to clear
|
||||||
* + fits next to this line or,
|
* + fits next to this line or,
|
||||||
* this line is empty with no floats and
|
* this line is empty with no floats
|
||||||
* + current y, cy, is below the clear level
|
* + current y, cy, is below the clear level
|
||||||
*
|
*
|
||||||
* Float affects current line */
|
* Float affects current line */
|
||||||
|
Loading…
Reference in New Issue
Block a user