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
    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
    Gainesville, FL
    Posts
    37,646
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


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

Thread Participants: 1