You found a bug! We've classified it as TOUCH-3787 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    15
    Vote Rating
    0
    blackswanny is on a distinguished road

      0  

    Default "Auto" attribute value in style is ignored

    "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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


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