Fix for bug #2748. Reset the scroll-position to 0 when the scrollbar

is no longer needed
This commit is contained in:
troy%netscape.com 1999-01-31 18:42:13 +00:00
Родитель 2f220e6576
Коммит d05af532a2
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -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);