зеркало из https://github.com/mozilla/gecko-dev.git
fixed display in SetSelectedIndices()
This commit is contained in:
Родитель
db64f03904
Коммит
4b33ec0b5b
|
@ -419,10 +419,12 @@ nsresult nsListBox::SetSelectedIndices(PRInt32 aIndices[], PRInt32 aSize)
|
|||
::SetPt(&theCell, 0, 1);
|
||||
::LSetSelect(true, theCell, mListHandle);
|
||||
}
|
||||
::LSetDrawingMode(true, mListHandle);
|
||||
::LAutoScroll(mListHandle);
|
||||
::LSetDrawingMode(true, mListHandle);
|
||||
EndDraw();
|
||||
|
||||
Invalidate(PR_TRUE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -477,6 +479,8 @@ nsresult nsListBox::Deselect()
|
|||
::LSetDrawingMode(true, mListHandle);
|
||||
EndDraw();
|
||||
|
||||
Invalidate(PR_TRUE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче