[project @ 2006-03-26 23:05:08 by dsilvers]

Do not include the border in the extra margin calculation for <html> tags

svn path=/import/netsurf/; revision=2188
This commit is contained in:
Daniel Silverstone 2006-03-26 23:05:08 +00:00
parent 0f13799768
commit aee810d4d3

View File

@ -1372,12 +1372,10 @@ void html_reformat(struct content *c, int width, int height)
doc = c->data.html.layout;
c->width = doc->descendant_x1 +
doc->margin[LEFT] + doc->margin[RIGHT] +
doc->border[LEFT] + doc->border[RIGHT];
doc->margin[LEFT] + doc->margin[RIGHT];
c->height = doc->descendant_y1 +
doc->margin[TOP] + doc->margin[BOTTOM] +
doc->border[TOP] + doc->border[BOTTOM];
doc->margin[TOP] + doc->margin[BOTTOM];
}