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
parent eab83335f9
commit 7802e4085f
2 changed files with 4 additions and 4 deletions

View File

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

View File

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