Make sure that everything fits when wrapping is off; in addition give wrapped objects all the room that they want

This commit is contained in:
kipp%netscape.com 1998-10-21 20:02:36 +00:00
Родитель 3e7a231a39
Коммит 84222783bc
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -410,6 +410,10 @@ nsInlineReflow::ComputeAvailableSize()
mFrameAvailSize.height = mBottomEdge - pfd->mBounds.y - mFrameAvailSize.height = mBottomEdge - pfd->mBounds.y -
pfd->mMargin.bottom; pfd->mMargin.bottom;
} }
if (mOuterReflowState.mNoWrap) {
mFrameAvailSize.width = mOuterReflowState.maxSize.width;
return PR_TRUE;
}
// Give up now if there is no chance. Note that we allow a reflow if // Give up now if there is no chance. Note that we allow a reflow if
// the available space is zero because that way things that end up // the available space is zero because that way things that end up