vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.64k stars 730 forks source link

Column auto resize since 1.5 => 2.0 #2450

Closed TheFast99 closed 11 months ago

TheFast99 commented 11 months ago

Hi

Since I upgraded 1.5 to 2.0, the auto resize when i double click on the column resizer seems to not work. The autoResize property on column class is still at true. Is it just me and i'm missing something since the upgrade or an actual bug ?

Thanks

vitmalina commented 11 months ago

Did you try with the lasted built in the /dist folder in master branch? I think the was a fix for it already

TheFast99 commented 11 months ago

Just try it, it works. Just a little thing, if i have an icon before the text, the resizer seems to not take the icon size into account, just the text to resize. But not very important for me.

Thank you.

vitmalina commented 11 months ago

The issue with icon might be due to it is not loaded in time it is sampled for width. It should work with icons. I think if you preload icon in some hidden div, then it should work

TheFast99 commented 11 months ago

yeah thx, i added icons after request.