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

"0 width" case.  Bug 222990, r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2003-10-21 16:27:48 +00:00
parent c607823b72
commit 46de74faf0
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;
}