EasyUI Forum

General Category => Bug Report => Topic started by: anton.dutov on September 12, 2012, 04:21:15 AM



Title: DataGrid colspan bug
Post by: anton.dutov on September 12, 2012, 04:21:15 AM
DataGrid bug?
Please refer example http://jsfiddle.net/G57fE/, look at "percent"  field layout.


Title: Re: DataGrid colspan bug
Post by: anton.dutov on September 12, 2012, 04:29:37 AM
But when  width of columns is set - it's work correcly?.
In documentation we can read following description "The width of column. If not defined, the width will auto expand to fit its contents."


Title: Re: DataGrid colspan bug
Post by: stworthy on September 12, 2012, 06:40:56 AM
Reduce the title length of colspan column cell and it can run fine.
http://jsfiddle.net/G57fE/1/


Title: Re: DataGrid colspan bug
Post by: anton.dutov on September 12, 2012, 07:05:32 AM
But this hack, is not solution.
I checked other look-like code, everywhere when summary width of bottom columns greater then top columns, we get same bug.

May be once at table creattion when column width undefined - calc autosize?
Code:
var tmp = $('<div/>').css({display:'inline',visibility:'hidden'}).text('Restructured outdated').appendTo('body');
var autoSize = tmp.width();
tmp.remove();k