Page MenuHomePhabricator

free text field autogrow does not work on some major browsers
Closed, ResolvedPublic

Description

This was first posted here:

http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms#Autogrow_bug

I have confirmed it in Opera and in Google Chrome. Opera has the free text field collapse to just one line, while the Google Chrome behavior is to expand to a size much larger than necessary, which sounds similar to the reported FireFox behavior.

A solution may have been explored already, here:

http://stackoverflow.com/questions/3723963/jquery-val-does-not-work-for-textarea-in-opera


Version: unspecified
Severity: normal

Details

Reference
bz30926

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:47 PM
bzimport set Reference to bz30926.

Thorncrag wrote:

I can confirm this in FF7 as well as IE8. In FF7, I tried activating autogrow on a few fields. This worked as expected when creating new pages; however, upon editing existing pages with moderate amounts of text, the field was out of control. For instance, a field that had about 50 lines of text, the field actually loaded with about 150 rows, 100 of which were empty.

I believe I just fixed this in SVN. The issue was that the default width for textareas changed from 80 columns to "100%" - i.e., a pixel width instead of a character width - and the autogrow Javascript couldn't handle that correctly. I changed the default width to be a columns value again, if autogrow is set, and now it seems to be working fine.