When selectedIndex is set, make sure to display the corresponding text in the

display area.  Bug 330554, r+sr=mats, a=dbaron
This commit is contained in:
bzbarsky%mit.edu 2007-08-22 03:25:42 +00:00
Родитель f19920cb72
Коммит e638f13ada
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -916,6 +916,8 @@ nsComboboxControlFrame::GetOptionSelected(PRInt32 aIndex, PRBool* aValue)
NS_IMETHODIMP
nsComboboxControlFrame::OnSetSelectedIndex(PRInt32 aOldIndex, PRInt32 aNewIndex)
{
RedisplayText(aNewIndex);
nsISelectControlFrame* listFrame = nsnull;
NS_ASSERTION(mDropdownFrame, "No dropdown frame!");