Results 1 to 3 of 3

Thread: trAtts.set is not a valid function - table layout

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1

    Default trAtts.set is not a valid function - table layout

    When a table layout is assigned to panel and trAttrs used, (like below)
    Code:
    layout:{                    
    type: "table",
    columns: 2,
    tableAttrs: {
          style: {
           width: '100%'
              }
    },
     trAttrs:{
                            vAlign:'top'
    }
    },
    for any trAttrs the layout code internally is using
    Code:
    trEl.set(this.trAttrs)
    and it crashes that 'set' is not a valid method.
    I think it should be 'setAttribute'
    I changed the ext-all-debug.js with it and the code worked fine

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    trEl is just the HTML element but it needs to be an Ext.Element instance to use the set method (set is correct). So all it needs to do to fix this one is Ext.get(trEl) and it should work. In 4.1.0 this has been fixed.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default

    This problem exists in 4.2.1

Posting Permissions

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