fix for #79217, scrollbar position need to be invalidated when switching folders.

r=hwaara,sspitzer sr=hyatt.  fix by Jan Varga (varga@utcru.sk)
This commit is contained in:
sspitzer%netscape.com 2001-10-12 21:02:17 +00:00
Родитель 50e8bc3294
Коммит 8d587ce55b
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -497,6 +497,9 @@ NS_IMETHODIMP nsOutlinerBodyFrame::SetView(nsIOutlinerView * aView)
// The scrollbar will need to be updated.
InvalidateScrollbar();
// Reset scrollbar position.
UpdateScrollbar();
PRInt32 rowCount;
mView->GetRowCount(&rowCount);
SetVisibleScrollbar((rowCount >= mPageCount));

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

@ -497,6 +497,9 @@ NS_IMETHODIMP nsOutlinerBodyFrame::SetView(nsIOutlinerView * aView)
// The scrollbar will need to be updated.
InvalidateScrollbar();
// Reset scrollbar position.
UpdateScrollbar();
PRInt32 rowCount;
mView->GetRowCount(&rowCount);
SetVisibleScrollbar((rowCount >= mPageCount));