added code to the destructor to make sure the list get rolled up.
r=kmcclusk bug 15912 git-svn-id: svn://10.0.0.236/trunk@51303 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -108,6 +108,15 @@ nsListControlFrame::nsListControlFrame()
|
||||
//---------------------------------------------------------
|
||||
nsListControlFrame::~nsListControlFrame()
|
||||
{
|
||||
// if list is dropped down
|
||||
// make sure it gets rolled up
|
||||
if (IsInDropDownMode()) {
|
||||
PRBool isDown;
|
||||
mComboboxFrame->IsDroppedDown(&isDown);
|
||||
if (isDown) {
|
||||
mComboboxFrame->ShowDropDown(PR_FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMEventReceiver> reciever(do_QueryInterface(mContent));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user