webix.ui.list autowidth

How can I “autowidth” list with static data?
“autowidth” property in config does not make sense, as it is for “x” layout.
Actually I can do that with custom function, but want to know if there is more suitable solution. Code Snippet

List component doesn’t have a built-in “size to content” logic. Solution with getTextSize is a correct one. The only correction, it is safer to use raw values instead of inner HTML

https://webix.com/snippet/ef1d5226

or, for a styled version

https://webix.com/snippet/cc3ad685