b=25245 Fixed ApplyLeftMargin() to not subtract for margins if it is an

unconstrained reflow
This commit is contained in:
troy@netscape.com
2000-01-30 18:29:52 +00:00
parent cd4f4dd274
commit 9ed7ac11f0
2 changed files with 8 additions and 4 deletions

View File

@@ -1184,8 +1184,10 @@ nsLineLayout::ApplyLeftMargin(PerFrameData* pfd,
}
// Adjust available width to account for the indent and the margins
aReflowState.availableWidth -= indent + pfd->mMargin.left +
pfd->mMargin.right;
if (aReflowState.availableWidth != NS_UNCONSTRAINEDSIZE) {
aReflowState.availableWidth -= indent + pfd->mMargin.left +
pfd->mMargin.right;
}
// NOTE: While the x coordinate remains relative to the parent span,
// the y coordinate is fixed at the top edge for the line. During

View File

@@ -1184,8 +1184,10 @@ nsLineLayout::ApplyLeftMargin(PerFrameData* pfd,
}
// Adjust available width to account for the indent and the margins
aReflowState.availableWidth -= indent + pfd->mMargin.left +
pfd->mMargin.right;
if (aReflowState.availableWidth != NS_UNCONSTRAINEDSIZE) {
aReflowState.availableWidth -= indent + pfd->mMargin.left +
pfd->mMargin.right;
}
// NOTE: While the x coordinate remains relative to the parent span,
// the y coordinate is fixed at the top edge for the line. During