зеркало из https://github.com/mozilla/pjs.git
When a resize happens and one of the dimensions are constrained and it already has been reflowed we need to remove the padding & borders
or they keep getting added in. Bug 101936 r=kmmclusk sr=attinasi
This commit is contained in:
Родитель
a59ab8bd75
Коммит
bb85a6bd22
|
@ -1608,6 +1608,9 @@ nsComboboxControlFrame::Reflow(nsIPresContext* aPresContext,
|
|||
// dropdownRect will hold the content size (minus border padding)
|
||||
// for the display area
|
||||
mDropdownFrame->GetRect(dropdownRect);
|
||||
if (eReflowReason_Resize == aReflowState.reason) {
|
||||
dropdownRect.Deflate(borderPadding);
|
||||
}
|
||||
|
||||
// Get maximum size of the largest item in the dropdown
|
||||
// The height of the display frame will be that height
|
||||
|
|
|
@ -1608,6 +1608,9 @@ nsComboboxControlFrame::Reflow(nsIPresContext* aPresContext,
|
|||
// dropdownRect will hold the content size (minus border padding)
|
||||
// for the display area
|
||||
mDropdownFrame->GetRect(dropdownRect);
|
||||
if (eReflowReason_Resize == aReflowState.reason) {
|
||||
dropdownRect.Deflate(borderPadding);
|
||||
}
|
||||
|
||||
// Get maximum size of the largest item in the dropdown
|
||||
// The height of the display frame will be that height
|
||||
|
|
Загрузка…
Ссылка в новой задаче