summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-09-23 19:38:16 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-09-23 19:38:16 +0000
commit804a11af5be5c7ea467b011b222bc73e926a7560 (patch)
treeeb53ae17071cf475f1a1b46734b7ab67e6a9d082
parent3f5d902edd65ed2201f12914bc555872d3f45eb1 (diff)
downloadnetsurf-804a11af5be5c7ea467b011b222bc73e926a7560.tar.gz
netsurf-804a11af5be5c7ea467b011b222bc73e926a7560.tar.bz2
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
-rw-r--r--render/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c
index 82a806479..f1056f4ab 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -264,7 +264,7 @@ bool layout_block_context(struct box *block, struct content *content)
box = margin_box = block->children;
/* set current coordinates to top-left of the block */
cx = 0;
- cy = block->padding[TOP];
+ y = cy = block->padding[TOP];
if (box)
box->y = block->padding[TOP];
@@ -1618,7 +1618,7 @@ bool layout_line(struct box *first, int *width, int *y,
/* + not cleared or,
* cleared and there are no floats to clear
* + 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
*
* Float affects current line */