Results 1 to 4 of 4

Thread: grow in textarea is not working when height is a number

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-25340 in 6.5.2.
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2010
    Posts
    27

    Default grow in textarea is not working when height is a number

    Ext version tested:


    • Ext 6.5.0 rev 775




    Browser versions tested against:


    • Chrome 58.0.3029.110 (64-bit)
    • IE11
    • FF53.0.2




    Description:


    • I have a textarea with grow is true. The height config is a number.
      I expect the textarea to grow, but it does not.
      When I change the height config to a string, the textarea grows with the content.

      In the fiddle I have created two fields with the grow config true. Only the height as string grows.
      https://fiddle.sencha.com/#view/editor&fiddle/207k

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha - Support Team
    Join Date
    Mar 2015
    Location
    Chicago
    Posts
    239

    Default

    Hi,

    When working with TextAreas configured with grow: true. Please use the growMin/growMax configs instead of height.

    Code:
        Ext.create('Ext.form.FormPanel', {
                title: 'Sample TextArea',
                width: 400,
                bodyPadding: 10,
                renderTo: Ext.getBody(),
                items: [{
                    xtype: 'textareafield',
                    grow: true,
                    growMin: 100,
                    growMax: 200
                }]
            });
    Guilherme Lopes
    Sencha Support

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2010
    Posts
    27

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    Thanks for the report! I have opened a bug in our bug tracker.

    The bug should be fixed in 6.5.2, but it is not. When I test this in the fiddle with a nightly, it is also not fixed.

Similar Threads

  1. [FIXED] TextArea grow bug with
    By soteck in forum Ext 5: Bugs
    Replies: 1
    Last Post: 10 Nov 2015, 10:12 AM
  2. Replies: 5
    Last Post: 8 Feb 2012, 3:01 AM
  3. grow textarea with in fieldset
    By nandhagopan in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 7 Jun 2011, 3:39 AM
  4. Replies: 2
    Last Post: 29 Jan 2008, 6:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •