Live Grid AutoExpandColumn Issue with latest Chrome update

  1. #1

    Live Grid AutoExpandColumn Issue with latest Chrome update

    Hi All,

    I think there's an issue with the latest version of Chrome (v19) and the Ext.Net Grid and AutoExpandColumn. There's a horizontal scrollbar in a grid width AutoExpandColumn. The issue is just on Chrome, not on IE, FF or other browsers.

    You can open with Chrome v19 one of the examples on the website:https://examples1.ext.net/#/GridPanel/ArrayGrid/Simple/ and you will be able to see the horizontal scrollbar.


    Thanks
  2. #2

    Helping the EXT.NET Team

    Quote Originally Posted by dziedziela View Post
    Hi All,

    I think there's an issue with the latest version of Chrome (v19) and the Ext.Net Grid and AutoExpandColumn. There's a horizontal scrollbar in a grid width AutoExpandColumn. The issue is just on Chrome, not on IE, FF or other browsers.

    You can open with Chrome v19 one of the examples on the website:https://examples1.ext.net/#/GridPanel/ArrayGrid/Simple/ and you will be able to see the horizontal scrollbar.


    Thanks

    Hi guys,

    I made some further research on this and found this article on the Sencha website:
    http://www.sencha.com/forum/showthre...e-Chrome/page2


    Is it possible to integrate the workaround above with Ext.Net and if yes, how?

    Thanks
  3. #3
    Quote Originally Posted by dziedziela View Post
    Hi guys,

    I made some further research on this and found this article on the Sencha website:
    http://www.sencha.com/forum/showthre...e-Chrome/page2


    Is it possible to integrate the workaround above with Ext.Net and if yes, how?

    Thanks


    Guys, I found the solution to the problem. The workaround for version 19+ of Chrome is:

    Add to the bottom of your page the following script:

        <script type="text/javascript">
            Ext.chromeVersion = Ext.isChrome ? parseInt((/chrome\/(\d{2})/).exec(navigator.userAgent.toLowerCase())[1], 10) : NaN;
             Ext.override(Ext.grid.ColumnModel, {
                getTotalWidth: function (includeHidden) {
                    if (!this.totalWidth) {
                        var boxsizeadj = (Ext.isChrome && Ext.chromeVersion > 18 ? 2 : 0);
                        this.totalWidth = 0;
                        for (var i = 0, len = this.config.length; i < len; i++) {
                            if (includeHidden || !this.isHidden(i)) {
                                this.totalWidth += (this.getColumnWidth(i) + boxsizeadj);
                            }
                        }
                    }
                    return this.totalWidth;
                }
            });    
        </script>
  4. #4
    We fixed autoexpand column under Chrome 19
    The fix is available in SVN and will be include to nex public release of v1
  5. #5

    when is it available

    hi, this scheduled date for this update and when is it available?
  6. #6
    Quote Originally Posted by Vladimir View Post
    We fixed autoexpand column under Chrome 19
    The fix is available in SVN and will be include to nex public release of v1
    Good to know, thanks.

    When the next release of v1 is up?
  7. #7
    Quote Originally Posted by dziedziela View Post
    Add to the bottom of your page the following script:
    Excellent! This fix also takes care of a bug in latest Chrome (19.0.1084.46) where the rightmost columnheader does not render at all (Ext.NET v1.3)

    Thanks /Peter

Similar Threads

  1. Chrome Grid width with AutoExpandColumn
    By dziedziela in forum 1.x Help
    Replies: 0
    Last Post: May 21, 2012, 10:38 AM
  2. [CLOSED] Error after the latest update from SVN
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 21, 2011, 1:50 PM
  3. [CLOSED] [1.0] - Missing Icons in latest SVN Update
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 30, 2010, 1:00 PM
  4. [CLOSED] GridPanel.AutoExpandColumn issue
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 19, 2009, 5:07 PM
  5. [CLOSED] live update of grid rows
    By mjessup in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 17, 2009, 5:59 AM

Posting Permissions