You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #51
    Sencha User
    Join Date
    Jun 2008
    Posts
    70
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default Issue also exists with Safari 6

    Issue also exists with Safari 6


    I have changed the fix to check the WebKit version instead of the Chrome version so it works with any WebKit based browser (I have tested Chrome and Safari).

    Code:
    if (!Ext.isDefined(Ext.webKitVersion)) {
        Ext.webKitVersion = Ext.isWebKit ? parseFloat(/AppleWebKit\/([\d.]+)/.exec(navigator.userAgent)[1], 10) : NaN;
    }
    /*
     * Box-sizing was changed beginning with Chrome v19.  For background information, see:
     * http://code.google.com/p/chromium/issues/detail?id=124816
     * https://bugs.webkit.org/show_bug.cgi?id=78412
     * https://bugs.webkit.org/show_bug.cgi?id=87536
     * http://www.sencha.com/forum/showthread.php?198124-Grids-are-rendered-differently-in-upcoming-versions-of-Google-Chrome&p=824367
     *
     * */
    if (Ext.isWebKit && Ext.webKitVersion >= 535.2) { // probably not the exact version, but the issues started appearing in chromium 19
        Ext.override(Ext.grid.ColumnModel, {
            getTotalWidth: function (includeHidden) {
                if (!this.totalWidth) {
                    var boxsizeadj = 2;
                    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;
            }
        });
    
    
        Ext.onReady(function() {
            Ext.get(document.body).addClass('ext-chrome-fixes');
            Ext.util.CSS.createStyleSheet('@media screen and (-webkit-min-device-pixel-ratio:0) {.x-grid3-cell{box-sizing: border-box !important;}}', 'chrome-fixes-box-sizing');
        });
    }
    Tocco AG - technology meets spirit
    http://www.tocco.ch

  2. #52
    Sencha User
    Join Date
    Jul 2009
    Posts
    22
    Vote Rating
    2
    vot is on a distinguished road

      1  

    Default


    It is a shame that there is no official update or patch (nor any comment except 'We are working on it') to fix this issue after that long time. There are products, commercial or OSS, out there that are still using version 3.x and are not able to migrate to 4.x.

  3. #53
    Sencha User
    Join Date
    Nov 2008
    Location
    Berlin, Germany
    Posts
    24
    Vote Rating
    0
    feyyaz is on a distinguished road

      0  

    Default


    +1 Thx a lot for this fix, works perfect!

  4. #54

  5. #55
    Sencha User
    Join Date
    Jun 2010
    Posts
    20
    Vote Rating
    0
    psm1963 is on a distinguished road

      0  

    Default


    Can someone please assist as to where this fragment of code should be placed...somewhere in ExtJS codebase or in one's own app...thanks

  6. #56
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    It is an override .. so create a new file called override.js in included it after ext-all.js and before your app.js

    Scott.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."