PDA

View Full Version : Extjs grid summary row render error in IE6



zhangjunchen
22 Jul 2013, 1:14 AM
Hello there,
I have a grid which configed with summary row,it shows well in IE8 and FireFox,but it do not work well in IE6,see attached file.
The grid has 3 locked columns and 31 unlocked columns,and the first row is the summary row.And my extjs version is 4.2.0
Anyone can help me?

zhangjunchen
23 Jul 2013, 1:24 AM
I fixed this bug by overwriting Ext.grid.feature.Summary,overwriding its "onColumnHeaderLayout" method:
old code:
el.setWidth(column.width || (column.lastBox ? column.lastBox.width : 100));

new code("isIE6" is calculated before):
if(isIE6){
el.setWidth(column.width-2 || (column.lastBox ? column.lastBox.width : 100));
}
else{
el.setWidth(column.width || (column.lastBox ? column.lastBox.width : 100));
}

Now it will be OK.
Hope to help others working with IE6.

slemmon
25 Jul 2013, 8:38 AM
If you try your code (without the override) with 4.2.1 do you still observe the issue?

amsoft
11 Nov 2013, 5:20 AM
Yes, still in 4.2.1 actual but for Firefox this time.

slemmon
13 Nov 2013, 1:38 PM
Can you post a working test case?
You can use https://fiddle.sencha.com to construct/share the test case as well. Just log in with your forum login and password.

amsoft
14 Nov 2013, 12:37 AM
The working fiddle: https://fiddle.sencha.com/#fiddle/1id
(https://fiddle.sencha.com/#fiddle/1id)
The issue can be reproduced in the latest Firefox and Chrome.

slemmon
19 Nov 2013, 2:40 PM
If you test outside of fiddle does it work ok for you?

amsoft
19 Nov 2013, 10:10 PM
No. It's just the same as in the fiddle.