I am having a odd problem trying to keep the width of a table 100% of it’s parent. It has something to do with the column formatting but I can’t seem to figure it out,
Take this fiddle for example. Enter a number in the “Increase %” column and you will see the table slightly shrink. I want the table to always maintain 100% width. How do I achieve that?
it looks like the logic of afterChange changes the width of the columns. It might be a result of data changes, where the columns haven’t been able to rebuild the table correctly.
Ok, but how do I fix it? What is the best way to do a calculation for a cell? I am having a hard time finding things like this in the online documentation.
I’m waiting for the opinion of our developer. I’ve tried the recalculateAllColumnsWidth but it did not help. I’ll update you as soon as I get any information.
Here’s a quick video showing the problem in action. I just want the table to maintain 100% width and as you can see in the video, something weird is happening.
So this is exactly what I see in the JSFiddle. Thank you for sharing the video and the browser details. I have updated our developer and asked him to investigate this case.
This is his last reply
Error comes from qeHOT.recalculateAllColumnsWidth because hot instance doesn’t have this method. Plugin autoColumnSize has recalculateAllColumnsWidth, so user needs to access it this way var plugin = qeHOT.getPlugin('autoColumnSize'); and then only will he be able to use plugin.recalculateAllColumnsWidth(); method .
Nevertheless, the main bug still occurs - Edit fiddle - JSFiddle - Code Playground
so we’re still looking if there’s a fix/workaround that doesn’t need core changes.
Thanks for clarification about recalculateAllColumnsWidth. That make sense now.
The problem with the hidden overflow is that I need to set a fixed height. In my application, there is always a dynamic number of rows so I would have to calculate the container height. I may try that but if you can find a simpler answer that would be great.