mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
eab83335f9
commit
7802e4085f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user