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