Make sure the pref size is at least as large as the min size for leaf boxes, just like we do for container boxes. Bug 246706, r+sr=dbaron.

git-svn-id: svn://10.0.0.236/trunk@157880 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com 2004-06-15 01:10:09 +00:00
parent 9f2ebc2076
commit ce46c070a8

View File

@ -903,6 +903,13 @@ nsBox::GetPrefSize(nsBoxLayoutState& aState, nsSize& aSize)
AddBorderAndPadding(aSize);
AddInset(aSize);
nsIBox::AddCSSPrefSize(aState, this, aSize);
nsSize minSize(0, 0), maxSize(0, 0);
GetMinSize(aState, minSize);
GetMaxSize(aState, maxSize);
BoundsCheck(minSize, aSize, maxSize);
return NS_OK;
}