-
16 May 2012 12:23 AM #11
-
16 May 2012 1:49 AM #12
It seems that both chrome and FF are dealing with box-sizing incorrectly. Its just that FF is more consistently incorrect.
The W3C spec says that box-sizing applies to 'all elements that accept width or height'
See this example: https://gist.github.com/2709126
box-sizing seems have no effect on the table even though it has a border of 5px. Surprisingly only IE10 seems to render correctly.
-
17 May 2012 4:47 AM #13
Try this, I HTH:
PHP Code:Ext.grid.ColumnModel.override({
getTotalWidth: function(includeHidden) {
var off = 0;
if(!Ext.isDefined(Ext.isChrome19)){
Ext.isChrome19 = /\bchrome\/19\b/.test(navigator.userAgent.toLowerCase());
};
if (Ext.isChrome19){
off = 2;
};
if (!this.totalWidth) {
this.totalWidth = 0;
for (var i = 0, len = this.config.length; i < len; i++) {
if (includeHidden || !this.isHidden(i)) {
this.totalWidth += this.getColumnWidth(i)+off;
};
};
};
return this.totalWidth;
}
});
Ext 3.X.X plugin for Aptana Studio - Still in development - Support it
Italian ExtJs Developers Group
-
17 May 2012 4:53 AM #14
Thanks seek. I came up with an almost identical solution earlier.

Code: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; } });
-
21 May 2012 3:28 PM #15
-
22 May 2012 11:11 PM #16Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,455
- Vote Rating
- 52
Bump, +1 for getting this resolved as it's now in the wild (affecting our users of Scheduler/Gantt 1.x).
-
24 May 2012 10:38 AM #17
+1 also, we can't allow fielded systems to break due to lack of support...
-
24 May 2012 11:37 AM #18
I see there is a new release of Chrome. I have not downloaded and tested. Hopefully this will fix things.
Scott.
-
28 May 2012 2:06 AM #19
-
30 May 2012 12:13 AM #20
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