зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #2748. Reset the scroll-position to 0 when the scrollbar
is no longer needed
This commit is contained in:
Родитель
2f220e6576
Коммит
d05af532a2
|
@ -1002,6 +1002,7 @@ NS_IMETHODIMP nsScrollingView :: ComputeContainerSize()
|
|||
mOffsetY = 0;
|
||||
dy = NSTwipsToIntPixels(offy, scale);
|
||||
|
||||
scrollv->SetPosition(0); // make sure thumb is at the top
|
||||
if (mScrollPref == nsScrollPreference_kAlwaysScroll)
|
||||
{
|
||||
mVScrollBarView->SetVisibility(nsViewVisibility_kShow);
|
||||
|
@ -1083,6 +1084,7 @@ NS_IMETHODIMP nsScrollingView :: ComputeContainerSize()
|
|||
mHScrollBarView->SetVisibility(nsViewVisibility_kHide);
|
||||
win->Enable(PR_TRUE);
|
||||
}
|
||||
scrollh->SetPosition(0); // make sure thumb is all the way to the left
|
||||
}
|
||||
|
||||
NS_RELEASE(scrollh);
|
||||
|
|
Загрузка…
Ссылка в новой задаче