diff --git a/mozilla/layout/forms/nsFieldSetFrame.cpp b/mozilla/layout/forms/nsFieldSetFrame.cpp index 0c2a6c23f79..f48e214d877 100644 --- a/mozilla/layout/forms/nsFieldSetFrame.cpp +++ b/mozilla/layout/forms/nsFieldSetFrame.cpp @@ -362,8 +362,11 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext, } } - // if dirty then check dirty flags - if (reason == eReflowReason_Dirty) { + if (aDesiredSize.mFlags & NS_REFLOW_CALC_MAX_WIDTH) { + reflowLegend = PR_TRUE; + reflowContent = PR_TRUE; + } else if (reason == eReflowReason_Dirty) { + // if dirty then check dirty flags if (GetStateBits() & NS_FRAME_IS_DIRTY) { reflowLegend = PR_TRUE; reflowContent = PR_TRUE;