bug #5093: added call to Invalidate() when changing the position of scrollbar thumb.

This commit is contained in:
beard%netscape.com 1999-05-18 21:45:55 +00:00
Родитель a4c669efd1
Коммит 725ab364f2
1 изменённых файлов: 7 добавлений и 2 удалений

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

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