No need to reduce box height when adding scrollbar.

svn path=/trunk/netsurf/; revision=3777
This commit is contained in:
Michael Drake 2008-01-26 23:03:30 +00:00
parent ae3555ccdd
commit 252aa870f8
1 changed files with 0 additions and 1 deletions

View File

@ -598,7 +598,6 @@ void layout_block_add_scrollbar(struct box *box, int which)
if (which == BOTTOM && box->height != AUTO &&
(box->style->overflow == CSS_OVERFLOW_SCROLL ||
box_hscrollbar_present(box))) {
box->height -= SCROLLBAR_WIDTH;
box->padding[BOTTOM] += SCROLLBAR_WIDTH;
}
if (which == RIGHT && box->width != AUTO &&