bad pref, min, max size assertion with equalsize b=402912 r=enn sr=roc a=schrep

This commit is contained in:
neil@parkwaycc.co.uk 2007-11-15 13:49:08 -08:00
parent e226cabf97
commit 9f8e160b9c

View File

@ -1104,6 +1104,8 @@ nsSprocketLayout::ChildResized(nsIBox* aBox,
aChildBoxSize->min = childActualWidth;
if (aChildBoxSize->pref < childActualWidth)
aChildBoxSize->pref = childActualWidth;
if (aChildBoxSize->max < childActualWidth)
aChildBoxSize->max = childActualWidth;
// if we have flexible elements with us then reflex things. Otherwise we can skip doing it.
if (aFlexes > 0) {