Results 1 to 2 of 2

Thread: TextField with grow: true doesn't use padding in the autoSize calculation

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-25829 in 6.5.2.
  1. #1
    Sencha User
    Join Date
    Nov 2016
    Posts
    26
    Vote Rating
    3
      0  

    Default TextField with grow: true doesn't use padding in the autoSize calculation

    Ext version tested:


    • Ext 6.5.0


    Description:

    Text fields with "grow: true" and non-zero padding don't grow to fit the text entirely, since the "autoSize" method doesn't use padding in its width calculation.

    Workaround:

    Set a larger "growAppend" to compensate for padding. For example, "growAppend: 'WW'" seems to be sufficient for 5px padding.

    Fiddle:

    https://fiddle.sencha.com/#view/editor&fiddle/22qq

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,237
    Vote Rating
    1015
      0  

    Default

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

Similar Threads

  1. Replies: 3
    Last Post: 23 Jan 2015, 3:34 PM
  2. [FIXED] TextField doesn't grow when text doesn't contain spaces
    By EvilOrange in forum Ext:Bugs
    Replies: 3
    Last Post: 25 Oct 2013, 12:33 AM
  3. [CLOSED] Resizer doesn't grow with TextField
    By Baidaly in forum Ext:Bugs
    Replies: 1
    Last Post: 23 Oct 2013, 4:01 PM
  4. Replies: 0
    Last Post: 21 Jun 2011, 9:48 AM
  5. Replies: 2
    Last Post: 30 May 2007, 1:48 PM

Tags for this Thread

Posting Permissions

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