Hi,
Just wondering if anyone else has found the following and perhaps a resolution. (Blog post with image examples here: Click)
Scenario:
An InfoPath Form created in Microsoft InfoPath Designer 2010 and is installed as an Administrator approved template.
Display:
- Read-only – No
- Enable spelling checker – Yes
- Enable AutoComplete – Yes
- Multi-line – Yes
Size:
Compatibility Settings:
- Form Type: Web Browser Form (2010)
Issue:
- Browser: Internet Explorer 7, 8, Google Chrome
When running the Form in the web and a user types into the multi-line text box; after 20 characters the text box gets bigger by 1 row.
On evaluation using the IE8 development toolbar. It would appear that the control is rendered as a <textarea> HTML element and JavaScript runs on the 22<sup>nd</sup> character and adds 1 to the “rows” attribute of the <textarea> element.
For example:
123456789012345678901 – Textarea row = 1
1234567890123456789012 – Textarea row = 2
This is regardless of the width of the Text Box (Multi-line) control on the InfoPath form.
A different issue occurs on the same control in the same scenario within Firefox.
When typing a paragraph until the end of the textbox size, the <textarea> element does not auto expand until the user presses return.
Giles Hamson MCTS, MCITP SharePoint 2010 | Blog: http://ghamson.wordpress.com | Twitter: @ghamson