Fixing #34573. Properly reflow a textcontrol if it's 'rows' attribute changes.

This commit is contained in:
jst%netscape.com 2000-04-13 12:28:35 +00:00
parent d06f3c7d91
commit a73404c364

View File

@ -1231,7 +1231,8 @@ nsGfxTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
}
mEditor->SetFlags(flags);
}
else if (nsHTMLAtoms::size == aAttribute && aHint != NS_STYLE_HINT_REFLOW) {
else if ((nsHTMLAtoms::size == aAttribute ||
nsHTMLAtoms::rows == aAttribute) && aHint != NS_STYLE_HINT_REFLOW) {
nsFormFrame::StyleChangeReflow(aPresContext, this);
}
// Allow the base class to handle common attributes supported