Results 1 to 9 of 9

Thread: Little help with debugging?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Vote Rating
    18
      0  

    Default Little help with debugging?

    I've got a rendering bug that I cannot duplicate with an easy test case so I'm trying to debug it.

    The issue is a grid with 2 columns.
    • standard column with flex of 1
    • action column with width of 20
    The column headers display correctly, but the width of the first (flex) column on all of the data rows is 0. (Actually the element is set to style="width: px".)

    I've narrowed it down to when getColumnsForTpl is called for the chunker, header.getDesiredWidth () return "undefined" because width is not set:
    Code:
    else if (me.flex) {
       return me.width;
    }
    I've looked all over the box layout trying to figure out where this should be set and can't find it for the life of me. Can one of the developers point me to where this is supposed to be set so I can figure out why it is not?

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

    Default

    Does your grid live within a layout or no?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Vote Rating
    18
      0  

    Default

    Yes:

    viewport - border - center
    tab panel
    panel - hbox
    panel - vbox
    container - flex 1 - hbox
    grid - width 300

  4. #4
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Vote Rating
    18
      0  

    Default

    Anyone?

  5. #5
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,016
    Vote Rating
    182
      0  

    Default

    Could be the fact that you're trying to set a width lesser than the minimum for your action columns. I believe the min width value for Ext.Columns is 40, check the source for reference.

  6. #6
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Vote Rating
    18
      0  

    Default

    I've been using 20px columns for quite a while and they work elsewhere in the same system. I also don't see anything about a min width in the doc or column source, other than being able to set one for column re-sizing.

    A min width of 40 doesn't make much sense with action columns which are typically 16x16 images.

    Surly someone at Sencha knows where the width of a flex column is set in the new layout stuff?

Posting Permissions

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