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
Родитель 70f0ee3653
Коммит 5d3a802715
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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