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