Changed to get nsIRunaround directly rather than use ReflowChild()

This commit is contained in:
troy 1998-04-20 19:55:45 +00:00
Родитель 1c35203ecc
Коммит ccfe33ed0a
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -165,11 +165,13 @@ NS_METHOD nsBodyFrame::ResizeReflow(nsIPresContext* aPresContext,
}
// Get the column's desired rect
nsRect desiredRect;
nsRect desiredRect;
nsIRunaround* reflowRunaround;
mSpaceManager->Translate(leftInset, topInset);
aStatus = ReflowChild(mFirstChild, aPresContext, mSpaceManager, columnMaxSize,
desiredRect, aMaxElementSize);
mFirstChild->QueryInterface(kIRunaroundIID, (void**)&reflowRunaround);
reflowRunaround->ResizeReflow(aPresContext, mSpaceManager, columnMaxSize,
desiredRect, aMaxElementSize, aStatus);
mSpaceManager->Translate(-leftInset, -topInset);
// Place and size the column