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

display area.  Bug 330554, r+sr=mats, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@232493 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-08-22 03:25:42 +00:00
parent 6e2b534f5e
commit 7cba85f20d

View File

@@ -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!");