зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
eab83335f9
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче