[RESOLVED] Datatable adjust option not working as expected

Hello,

I’m trying to set the columns width according to it’s content and header (which is bigger). According to the documentation (http://docs.webix.com/datatable__columns_configuration.html), the ‘all’ option should do this:

Adjusting column to its content

To adjust the width of a column to the related content size, you can use the adjust attribute. There are two options possible:

data - (the default one) adjusts column width to the content of the widest item in it;
header - adjusts column width to its header content;
all - combines the above mentioned modes and adjusts the column to the bigger value.

But this is note the behavior I’m getting as it show the following snippet:

http://webix.com/snippet/31638e83

How can I achieve having column’s width defined by the bigger value between content and header length?

Hello,

There’s a known issue with the header adjusting. As a temporary fix, please redefine the padding as follows:

http://webix.com/snippet/7169eefe

Thanks. That did the trick.