зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
50e8bc3294
Коммит
8d587ce55b
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче