mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
Fixed bug #1173 - the margin.top was subtracted instead of added...
This commit is contained in:
parent
1fca69289e
commit
0848982512
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user