зеркало из https://github.com/mozilla/gecko-dev.git
bug #5093: added call to Invalidate() when changing the position of scrollbar thumb.
This commit is contained in:
Родитель
a4c669efd1
Коммит
725ab364f2
|
@ -179,8 +179,8 @@ void nsScrollbar::DoScrollAction(ControlPartCode part)
|
|||
NS_RELEASE(parent);
|
||||
|
||||
// update this scrollbar
|
||||
this-Invalidate(PR_FALSE);
|
||||
this->Update();
|
||||
Invalidate(PR_FALSE);
|
||||
Update();
|
||||
|
||||
StartDraw();
|
||||
}
|
||||
|
@ -326,6 +326,11 @@ NS_METHOD nsScrollbar::SetPosition(PRUint32 aPos)
|
|||
aPos = 0;
|
||||
PRUint32 aMax = mFullImageSize - mVisibleImageSize;
|
||||
mValue = ((PRInt32)aPos) > aMax ? aMax : ((int)aPos);
|
||||
|
||||
// redraw the scrollbar. should update be done now, or later?
|
||||
Invalidate(PR_FALSE);
|
||||
Update();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче