Fixed bug #1173 - the margin.top was subtracted instead of added...

This commit is contained in:
kipp%netscape.com 1998-10-28 02:36:06 +00:00
parent 1fca69289e
commit 0848982512

View File

@ -862,13 +862,13 @@ nsInlineReflow::VerticalAlignFrames(nsRect& aLineBox,
pfd->mBounds.y = mTopEdge + lineHeight - pfd->mBounds.height;
break;
default:
pfd->mBounds.y = topEdge + maxAscent + pfd->mBounds.y -
pfd->mBounds.y = topEdge + maxAscent + pfd->mBounds.y +
pfd->mMargin.top;
break;
}
}
else {
pfd->mBounds.y = topEdge + maxAscent + pfd->mBounds.y -
pfd->mBounds.y = topEdge + maxAscent + pfd->mBounds.y +
pfd->mMargin.top;
}
frame->SetRect(pfd->mBounds);