Make sure to include the border and padding in the frame size even in the

"0 width" case.  Bug 222990, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@148208 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-10-21 16:27:48 +00:00
parent b94e1b9a14
commit 9864dac91d
2 changed files with 2 additions and 2 deletions

View File

@@ -946,7 +946,7 @@ nsComboboxControlFrame::ReflowCombobox(nsIPresContext * aPresContext,
aDropDownBtn->SetRect(buttonRect);
SetChildFrameSize(aDropDownBtn, aBtnWidth, aDesiredSize.height);
aDesiredSize.width = 0;
aDesiredSize.height = dispHeight;
aDesiredSize.height = dispHeight + aBorderPadding.top + aBorderPadding.bottom;;
// XXX What about ascent and descent?
return;
}

View File

@@ -946,7 +946,7 @@ nsComboboxControlFrame::ReflowCombobox(nsIPresContext * aPresContext,
aDropDownBtn->SetRect(buttonRect);
SetChildFrameSize(aDropDownBtn, aBtnWidth, aDesiredSize.height);
aDesiredSize.width = 0;
aDesiredSize.height = dispHeight;
aDesiredSize.height = dispHeight + aBorderPadding.top + aBorderPadding.bottom;;
// XXX What about ascent and descent?
return;
}