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:
rods%netscape.com 2001-10-16 00:32:14 +00:00
Родитель 1e7717abdd
Коммит 95a3ac6041
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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