You found a bug! We've classified it as TOUCH-5129 . 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
    Jun 2013
    Posts
    17
    Vote Rating
    2
    DieInHeaven is on a distinguished road

      1  

    Default Touch grid column width

    Touch grid column width


    I am using touch grid component but width of column header are not increasing
    when column data increases.
    thanks

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,687
    Vote Rating
    117
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      1  

    Default


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

  3. #3
    Sencha User
    Join Date
    Jun 2013
    Posts
    17
    Vote Rating
    2
    DieInHeaven is on a distinguished road

      1  

    Default


    OK Man ,
    do you have any fix for this??
    i really need this.

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    46
    Vote Rating
    4
    andrewx is on a distinguished road

      0  

    Default


    Quote Originally Posted by fmoseley View Post
    Thanks for the report! I have opened a bug in our bug tracker.
    This is a showstopper for me too - is there a workaround yet?

  5. #5
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    46
    Vote Rating
    4
    andrewx is on a distinguished road

      0  

    Default


    Anything on this? The grid is basically useless if you have to define explicit widths.

  6. #6
    Sencha User
    Join Date
    Jun 2013
    Posts
    17
    Vote Rating
    2
    DieInHeaven is on a distinguished road

      0  

    Default


    Please fix this or provide alternative way for this.
    otherwise i have to change my whole project.

  7. #7
    Sencha Premium Member austin1030's Avatar
    Join Date
    Feb 2008
    Location
    Hanover, Maryland
    Posts
    95
    Vote Rating
    1
    austin1030 is on a distinguished road

      0  

    Default


    For now, I have setup width like this

    each column...
    Code:
    width: (Ext.Viewport.getOrientation() === 'landscape')? (Ext.Viewport.getWindowWidth()*.2) : 120
    And probably need to a controller set the width of column based on orientation.

    Austin

  8. #8
    Sencha User
    Join Date
    Jun 2013
    Posts
    17
    Vote Rating
    2
    DieInHeaven is on a distinguished road

      0  

    Default


    I fix this by setting static width to all columns and for last one i use
    here 195 is total of all column width. Hope this will help.
    HTML Code:
    [CODE]width: (window.innerWidth > 0) ? window.innerWidth - 195[/CODE] : screen.width - 195