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:
rods%netscape.com
1999-10-20 21:59:04 +00:00
parent 8d5865d224
commit 54bbcb0dfd
2 changed files with 18 additions and 0 deletions

View File

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