Hello,
I have had a kind of mistake when trying to put HTML in a grid with autoheight, sometimes it does it well and sometimes it does it badly. Example:
https://snippet.dhtmlx.com/yjd4gdty
In my project I have put UL and LI in a grid cell with htmlEnable and autoHeight but the height is not correct. Am I doing something wrong or is it a bug? I’m using DHTMLX v.9.3.0 and this has been happening since v8
Thanks
Hello,
It’s a known behavior that relates to the current logic of `autoHeight` calculation, which counts only content and excludes HTML from calculations: JavaScript Grid - autoHeight Config | DHTMLX Suite 9 Docs
Unfortunately, there is no good approach that will help to avoid “miscalculation” for autoHeight + htmlEnable case.
You need to add a trailing space in the end of each `li` element so that the internal mechanism can calculate the height correctly.
Please check the snippet: DHTMLX Snippet Tool
Additionally, you can use plain text with the `/n` delimiter to display the items as a list.
Please check the example: DHTMLX Snippet Tool
The feature of more precise height calculation stays in future plans, unfortunately, there is no ETA. The new calculation function will use the real DOM. However, this will impose limitations on the volume of data.
I will notify you of any updates on this matter.