-
9 Nov 2012 2:04 AM #1
[4.1.0] TextArea does not behave correctly if contains no whitespace
[4.1.0] TextArea does not behave correctly if contains no whitespace
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.0
Browser versions tested against:- Firefox 16
DOCTYPE tested against:- html
Description:- TextArea does not grow correctly, or respond to input very well if there is no whitespace in the content.
Steps to reproduce the problem:- Type lots of text into a TextArea, without any whitespace (e.g. spaces or crlf).
The result that was expected:- TextArea should grow to fit the content in.
- Typing into the field should make the field stay scrolled to the bottom of the content, without pinging to the top - kinda hard to describe, try it in the example.
The result that occurs instead:- TextArea not sized correctly.
- Annoyign pinging scrolling thing as type.
Test Case:
Code:<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Ext Testing</title> <!-- Ext includes --> <script type="text/javascript" src="/ext4.1.2/ext-all-debug.js"></script> <!-- <script type="text/javascript" src="/Altus/app/FrameworkFixes.js"></script> --> <!-- CSS --> <link rel="stylesheet" href="/ext4.1.0/resources/css/ext-all.css" type="text/css"> <script type="text/javascript"> Ext.require([ 'Ext.form.*', ]); Ext.onReady(function() { Ext.create('Ext.form.FormPanel', { title : 'Sample TextArea', width : 400, bodyPadding: 10, renderTo : Ext.getBody(), items: [{ xtype : 'textareafield', grow : true, name : 'message', fieldLabel: 'Message', anchor : '100%', value : 'qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiop' }] }); }); </script> </head> <body> </body> </html>
HELPFUL INFORMATION
Screenshot or Video:- None.
See this URL for live test case: http://
Debugging already done:- None.
Possible fix:- None provided (no time, sorry).
Operating System:- Windows 7 Professional x64
Chers,
WestyProduct Architect
Altus Ltd.
-
9 Nov 2012 10:47 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Thanks for the report! I have opened a bug in our bug tracker.
You found a bug! We've classified it as
EXTJSIV-7730
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote