Bug 124258 - radio buttons and checkboxes not sizing wide enough for their labels. Make sure the pref size we return for the image isn't smaller than the min size specified in CSS. r=pinkerton, rs=hyatt.

This commit is contained in:
bryner%netscape.com 2002-02-14 05:51:47 +00:00
parent 089649b5cc
commit 1f884012b5

View File

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