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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user