Last modified: 2014-11-11 19:00:29 UTC
Created attachment 17092 [details] Screenshot of textarea without 'autogrow' and with (bottom)
When using autogrow and Wikieditor I get a weird input field that doesn't fill the full width of the input box. I just removed editor=wikieditor, and the same inline style appears. MW 1.25wmf5, SF master, WikiEditor master
Created attachment 17093 [details] Screenshot of textarea without 'autogrow' and with (bottom) - without wikieditor
(I keep hitting the wrong button before I'm done editing. Sorry for the crazy bug report.) I should note that if I remove the "width: auto;" inline style things work as they should. I've tested this in IE 10, Chrome, and Safari. Relevant section of my SF is as follows: {{{field|Facets Article Body|property=Facets Article Body|input type=textarea|editor=wikieditor|autogrow}}}
I turned on error logging and now I'm seeing this message: Warning: Missing argument 2 for WikiEditorHooks::editPageShowEditFormInitial(), called in /var/www/html/w/extensions/SemanticForms/includes/forminputs/SF_TextAreaInput.php on line 151 and defined in /var/www/html/w/extensions/WikiEditor/WikiEditor.hooks.php on line 162 Notice: Undefined property: SFTextAreaInput::$contentModel in /var/www/html/w/extensions/WikiEditor/WikiEditor.hooks.php on line 163 Repeated numerous times.
Hi - this is a feature, not a bug, :) for better or for worse. The "width: auto" thing is set specifically by the Semantic Forms code, in line 185 of /includes/forminputs/SF_TextAreaInput.php. The comments above it say, "Needed to prevent CSS from overriding the manually-set width." From what I remember, with "autogrow", the width can't simply be 100% of the page, because the Javascript needs to know the exact width in order to do its line-growing calculations. But you could try commenting out that line, and see if autogrow still works correctly for you.