mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
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:
parent
c607823b72
commit
46de74faf0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user