Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2009
    Posts
    198
    Vote Rating
    2
    rspaeth is on a distinguished road

      0  

    Default [FIXED-1182] column resize icon displays when it should not

    [FIXED-1182] column resize icon displays when it should not


    when the first column is defined as hidden in a configuration, the resize icon displays over the left side of the left most column, but does not perform any resizing. Even if the first column is defined to display and the user hides it sometime in their interaction with the grid, the resize icon displays for the second (now first) column.

    how to reproduce:
    -use the code below. note that the first column is hidden in the config file for this example
    -place the cursor over the left side of the first visible column
    -notice the resize icon
    -try to resize

    result:
    when trying to resize nothing happens

    if the hidden column is displayed, the icon does not show as expected

    expected result:
    no icon or the ability to resize the column

    version: 3.2.2 release


    Code:
    Ext.onReady(function()
    {
    
        var reader = new Ext.data.ArrayReader({}, [
               {name: 'index'},
               {name: 'level'},
               {name: 'numraw'},
               {name: 'num'},
               {name: 'w2'},
               {name: 'nmean'},
               {name: 'rsqr'},
               {name: 'nmeang'}
            ]);
           
            var def = {
                sortable: true
                ,width: 50
            };
           
            var viewConf = {
                scrollOffset: 0
                ,autoFill: true
            };
           
            var store = new Ext.data.Store(
                {
                    reader: reader,
                    data: Ext.grid.dummyData
                });
           
            var grid = new Ext.grid.GridPanel({
                ds: store,
                cm: new Ext.grid.ColumnModel(
                {
                    defaults: def
                    ,columns:
                    [
                        {id:'index', width: 30, sortable: true, dataIndex: 'index', hidden: true},
                        {header: "level", width: 80, sortable: true, dataIndex: 'level'},
                        {header: "Raw", sortable: true, dataIndex: 'numraw'},
                        {header: "num", sortable: true, dataIndex: 'num'},
                        {header: "w2", sortable: true, dataIndex: 'w2'},
                        {header: "nmean", sortable: true, dataIndex: 'nmean'},
                        {header: "rsqr", sortable: true, dataIndex: 'rsqr'},
                        {header: "nmeang", width: 100, sortable: true, dataIndex: 'nmeang'}
                    ]
                }),
                selModel: new Ext.grid.RowSelectionModel(),
                stripeRows: true,
                viewConfig: viewConf,
                autoHeight: true,
                border: true,
                bodyBorder: true,
                minColumnWidth: 50,
                region: 'center'
            });
    
          
       
            var port = new Ext.Viewport(
            {
                layout: 'border'
                ,defaults: {autoScroll: true}
                ,items: [
                    grid
                ]
            });
    });
    
    
    Ext.grid.dummyData = [
            [0, '-Inf -< 28', 11, 102, 284, '2.0%', '5.2%', '2.1%', 0.946, -0.936, 0.030, '', 386, '2.1%', -0.229, 0.001],
            [1, '28 -< 32', 4, 282, 457, '5.6%', '8.4%', '5.7%', 0.968, -0.395, 0.011, '', 739, '5.7%', -0.080, 0.000],
            [2, '32 -< 33', 1, 128, 128, '2.6%', '2.3%', '2.6%', 0.980, 0.088, 0.000, '', 256, '2.6%', -0.047, 0.000],
            [3, '33 -< 41', 8, 1050, 1410, '21.0%', '25.8%', 0.027, 0.973, -0.207, 0.010, '', 2460, '21.1%', 0.083, 0.001],
            [4, '41 -< 53', 12, 1742, 1809, '34.8%', '33.1%', 0.021, 0.979, 0.050, 0.001, '', 3551, '34.8%', 0.057, 0.001],
            [5, '53 -< 58', 5, 548, 502, '11.0%', '9.2%', '10.9%', 0.981, 0.176, 0.003, '', 1050, '10.9%', 0.045, 0.000],
            [6, '58 -< 70', 12, 814, 551, '16.3%', '10.1%', '16.1%', 0.986, 0.478, 0.030, '', 1365, '16.1%', -0.084, 0.001],
            [7, '70 -< 74', 4, 124, 114, '2.5%', '2.1%', '2.5%', 0.981, 0.172, 0.001, '', 238, '2.5%', -0.137, 0.000],
            [8, '74 -< 80', 6, 154, 110, '3.1%', '2.0%', '3.1%', 0.985, 0.424, 0.005, '', 264, '3.1%', -0.316, 0.003],
            [9, '80 -< Inf', 15, 56, 94, '1.1%', '1.7%', '1.1%', 0.966, -0.430, 0.003, '', 150, '1.1%', -0.463, 0.002],
            [10, 'Other', 0, 0, 0, '0.0%', '0.0%', '0.0%', 0.000, 0.000, 0.000, '', 0, '0.0%', 0.000, 0.000]
        ];
    Last edited by rspaeth; 5 Aug 2010 at 9:32 AM. Reason: add version

  2. #2
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Thanks for the report, this has now been fixed and will form part of Ext JS 3.3 beta 2
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2009
    Posts
    198
    Vote Rating
    2
    rspaeth is on a distinguished road

      0  

    Default


    Thanks!

Similar Threads

  1. [FIXED-739] Listview column resize + problem?
    By Chemist in forum Ext 3.x: Bugs
    Replies: 8
    Last Post: 1 Jul 2010, 6:55 AM
  2. [FIXED][3.0rc2] IE8 - ListView - resize Column
    By mepfuso in forum Ext 3.x: Bugs
    Replies: 9
    Last Post: 12 Oct 2009, 3:07 AM
  3. Replies: 1
    Last Post: 13 Nov 2008, 4:03 PM

Thread Participants: 1