Re-ordered the call to SetPosition(0) for the horizontal scrollbar,

because the way it was caused the scrollbar to be enabled when it should
be disabled...
This commit is contained in:
troy%netscape.com 1999-02-03 05:03:04 +00:00
Родитель eb390ab8e0
Коммит c5c7f2f3a2
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1076,6 +1076,7 @@ NS_IMETHODIMP nsScrollingView :: ComputeContainerSize()
mOffsetX = 0;
dx = NSTwipsToIntPixels(offx, scale);
scrollh->SetPosition(0); // make sure thumb is all the way to the left
if (mScrollPref == nsScrollPreference_kAlwaysScroll)
{
mHScrollBarView->SetVisibility(nsViewVisibility_kShow);
@ -1086,7 +1087,6 @@ 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);