Results 1 to 2 of 2

Thread: [3.3.x] [FIXED-1173] grid column width problem on webkit browsers

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2009
    Posts
    41

    Default [3.3.x] [FIXED-1173] grid column width problem on webkit browsers

    Hello there,

    Since the grid refactoring, all the columns in a grid (with forceFit: true, inside a layout: border, region: center) are rendered with the same width on webkit browsers (tested on chrome 5.0.375.125 & chromium 6.0.483.0 - 54509)

    The problem is a missing + "px" on the Ext.isNumber & if (Ext.isBorderBox || (Ext.isWebKit && !Ext.isSafari2)) case...

    Code:
    Ext.override(Ext.grid.GridView, {
        getColumnWidth: function (column) {
            var columnWidth = this.cm.getColumnWidth(column),
                borderWidth = this.borderWidth;
    
            if (Ext.isNumber(columnWidth)) {
                if (Ext.isBorderBox || (Ext.isWebKit && !Ext.isSafari2)) {
                    return columnWidth + "px";
                } else {
                    return Math.max(columnWidth - borderWidth, 0) + "px";
                }
            } else {
                return columnWidth;
            }
        }
    });
    With that it renders as expected on webkit browsers (tested also on ie non-strict, quirks mode)

    Let me know if you need more info.

    Thanks

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661

    Default

    [type]: fix
    [module]: GridView
    [id]: #1173
    [desc]: Fixes #1173. getColumn witdth should always append 'px' to numeric values before returning.

Similar Threads

  1. [FIXED-347]DatePicker popup width incorrect in Webkit
    By markeza in forum Ext 3.x: Bugs
    Replies: 15
    Last Post: 4 Jul 2013, 4:13 PM
  2. Sencha - Webkit browsers
    By GirijaSubramanian in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 2 Aug 2010, 1:12 PM
  3. Portal demo - scrollbar problem in WebKit browsers
    By rblon in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 27 Jul 2010, 8:57 PM
  4. Replies: 1
    Last Post: 2 Apr 2010, 10:00 AM

Posting Permissions

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