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 c028a6ce7f
commit c5f5a988f9

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) {