-
24 Sep 2012 11:15 PM #51
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
-
22 Oct 2012 6:52 AM #52
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.
-
8 Dec 2012 10:35 AM #53
+1 Thx a lot for this fix, works perfect!
-
9 Jan 2013 7:42 AM #54
THANKS!
THANKS!
OMG this is a perfect fix! Thanks a lot!
Extensions:
Ext.ux.DatePickerPlus (Multimonth,Multiselect,...)
Ext.ux.menu.StoreMenu - Ajax Store as menu-item config
Extended Window - Aero Shadows, nested grayscaled modal windows
Ext.MessageBox.promptCombo/promptRadio/promptCheckbox
Ext.ux.plugin.triggerfieldTooltip (for Comboboxes, Datefields...)
Ext.util.MD5
Ext.util.Utf8 (encode/decode)
Ext.util.base64 (encode/decode)
Using:
ExtJS 3.4.1.1/4.2
XPsp3/W7sp1
IE8/9/10
FF 20
Chrome 26
-
24 Feb 2013 2:55 PM #55
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
-
24 Feb 2013 3:00 PM #56
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.
You found a bug! We've classified it as
EXTJSIII-47
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote