If in the <Text Area rows=1> Then mozilla let me show 3 rows. It must be one. I Find it out in are our intranet work. Please repair Thanks A.J. Kruit
confirming as bug... to test use following code: <html><head></head><body><form action=""> <textarea rows="1">onerow</textarea><br><br> <textarea rows="3">threerow</textarea><br><br> <textarea rows="5">fiverow</textarea><br><br> </form></body></html> funny thing... mozilla showes 3 rows at the rows=1 statement shows 4 rows on the rows=3 statement and 6 rows on the rows=5 statement :) marking as new
The real bug is that the horizontal scrollbar should always be displayed and is not. If you add more text so the horizontal scrollbars appears. All the tests are correct except for rows=1, which shows two rods for some reason.
The reason that rows="1" results in a height of 3 rows is because there are two points where the textare height is increased beyond a single line: http://lxr.mozilla.org/mozilla/source/layout/html/forms/src/nsGfxTextControlFrame2.cpp#1745 In this case, we seem to be explicitly growing an extra row when rows="1" (is there any good reason for this?) http://lxr.mozilla.org/mozilla/source/layout/html/forms/src/nsGfxTextControlFrame2.cpp#1611 Here we are adding the height of the horizontal scrollbar, regardless of whether one is needed.
I´ve experienced the same problem, but this bug seems to be a duplicate of bug 33654
15 years ago
Dupe, they even have identical testcases. *** This bug has been marked as a duplicate of 33654 ***