Results 1 to 2 of 2

Thread: "Auto" attribute value in style is ignored

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3787 in Touch 2.3.0-b3 (36).
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    15
    Vote Rating
    1
      0  

    Default "Auto" attribute value in style is ignored

    REQUIRED INFORMATION
    Ext version tested:
    • Sencha Touch 2.1.0

    Description:
    • If I set width, height or other dimension attribute with "auto" value
      using appropriate property, sehcna code ignores it

    Steps to reproduce the problem:
    • Set width to "auto" value in config of any Ext.Component

    Code:
     Ext.define('Ext.Component') 
    ........................................... 
    applyWidth: function(width) { 
    return this.filterLengthValue(width); 
    }, 
    ........................................... 
    filterLengthValue: function(value) { 
    if (value === 'auto' || (!value && value !== 0)) { 
    return null; 
    } 
    return value; 
    }

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,421
    Vote Rating
    1271
      0  

    Default

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

Posting Permissions

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