Posted 8 September 2017, 9:53 am EST
Hello,
is it possible to autosize the column width based on header and cell content?
So if cell content is smaler then header, the column size should be based on the header width.
Thanks, Peter
Forums Home / Spread / SpreadJS
Posted by: peterlechner on 8 September 2017, 9:53 am EST
Posted 8 September 2017, 9:53 am EST
Hello,
is it possible to autosize the column width based on header and cell content?
So if cell content is smaler then header, the column size should be based on the header width.
Thanks, Peter
Posted 8 September 2017, 9:53 am EST
Hello,
You can also include the header text when using AutoFit with the autoFitType method.
Please go through attached sample for the requested functionality.
Hope it helps.
Thanks,
Reeva
Posted 8 September 2017, 9:53 am EST
Perfect, Thanks a lot!
Peter
Posted 4 September 2019, 12:37 pm EST
I’m having the same issue described here, but the link provided by Reeva does not work.