This commit is contained in:
hyatt%netscape.com 2000-10-17 19:00:34 +00:00
Родитель 9d1c3322a1
Коммит 305f77218d
1 изменённых файлов: 5 добавлений и 6 удалений

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

@ -260,12 +260,11 @@ nsTreeLayout::LayoutInternal(nsIBox* aBox, nsBoxLayoutState& aState)
box->GetNextBox(&box);
}
if (availableHeight > outer->GetRowHeightTwips() || availableHeight < 0) {
// of if we have enough available height left to add some more rows
// or we have to much then we need to add or create some rows. We
// can't do this durning layout but we can do it after. So post
// a callback to do it after.
outer->PostReflowCallback();
if (group && (group == outer) && availableHeight > 0) {
// We have enough available height left to add some more rows
// Since we can't do this during layout, we post a callback
// that will be processed after the reflow completes.
outer->PostReflowCallback();
}
// if rows were pushed down or pulled up because some rows were added