now checks to see if an explicit width or height is being set and then set the maxElementSize properly

it already did this for NavQuirks, this is for Standard mode
Bug 40621 r=dcone
This commit is contained in:
rods%netscape.com 2000-06-02 14:37:27 +00:00
Родитель eab83335f9
Коммит 7802e4085f
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -2402,8 +2402,8 @@ nsGfxTextControlFrame::ReflowStandard(nsIPresContext* aPresContext,
aDesiredSize.descent = 0;
if (aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = minSize.width;
aDesiredSize.maxElementSize->height = minSize.height;
aDesiredSize.maxElementSize->width = widthExplicit?desiredSize.width:minSize.width;
aDesiredSize.maxElementSize->height = heightExplicit?desiredSize.height:minSize.height;
}
return NS_OK;

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

@ -718,8 +718,8 @@ nsGfxTextControlFrame2::ReflowStandard(nsIPresContext* aPresContext,
aDesiredSize.descent = 0;
if (aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = minSize.width;
aDesiredSize.maxElementSize->height = minSize.height;
aDesiredSize.maxElementSize->width = widthExplicit?desiredSize.width:minSize.width;
aDesiredSize.maxElementSize->height = heightExplicit?desiredSize.height:minSize.height;
}
return NS_OK;