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