Results 1 to 3 of 3

Thread: ext js 4.1.1 ga - Problems with Grid forcefit=true attribute

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    27
    Vote Rating
    0
      0  

    Default ext js 4.1.1 ga - Problems with Grid forcefit=true attribute

    when " forcefit=true" option on grid is set - grid must re size columns to fit on whole grid width. But if you resize coulmns -you will se that heder column reseize, but all other columns - not.

    This is my iplementation on
    " forcefit=true"

    this.on('boxready',this.boxready);

    .....

    boxready:function(grid,width,height){
    var columns = grid.getView().getHeaderCt().getGridColumns(),
    count = columns.length,
    column,
    columnsWidth = 0,
    prop = 0;
    for (var index=0;index<count;index++){
    column = columns[index];
    columnsWidth = columnsWidth + (column.hidden ? 0 : column.width);
    }
    prop = (width-20)/columnsWidth;
    for (var index=0;index<count;index++){
    column = columns[index];
    column.width = parseInt(column.width * prop);
    }
    grid.doLayout();
    }

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

    Default

    Can I get a test case? I just tried a simple example and on Chrome and Firefox it is working as expected with 4.1.1
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  3. #3
    Touch Premium Member
    Join Date
    Nov 2009
    Location
    London
    Posts
    49
    Vote Rating
    6
      0  

    Default

    I think the OP is having the same issue as what I've reported in this ticket:

    http://www.sencha.com/forum/showthre...esize&p=944853

    In case it was different so as not to hijack this report I've filed it separately

Posting Permissions

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