EasyUI Forum
May 20, 2024, 11:46:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DataGrid colspan bug  (Read 16275 times)
anton.dutov
Newbie
*
Posts: 27


View Profile
« on: September 12, 2012, 04:21:15 AM »

DataGrid bug?
Please refer example http://jsfiddle.net/G57fE/, look at "percent"  field layout.
Logged
anton.dutov
Newbie
*
Posts: 27


View Profile
« Reply #1 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."
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #2 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/
Logged
anton.dutov
Newbie
*
Posts: 27


View Profile
« Reply #3 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
« Last Edit: September 12, 2012, 07:29:04 AM by anton.dutov » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!