I think this is a known thing, but I cannot figure out a solution.
The entire wrapper for our application has an overflow-y: auto property, for whatever reason. That’s pretty much out of my control as it affects the whole app. I’m placing multiple Handsontables inside a modal/drawer, which also has an overflow-y: auto property - but that I can control.
As you probably know already, and as you can see in this StackBlitz, a parent with this property basically breaks Handsontable. I understand I could add a set height for the table itself, but I would really like to know if there is another way.. I do not want the table to be of a set height because the surrounding components are then pushed far away and this table rarely has that many tows. This is all to just be able to see the entire contents of a dropdown, by the way.
Really the main issue is that, somewhere along the way, the div recognizable by the classes ht-wrapper handsontable htRowHeaders receives a style of overflow: hidden and I don’t know why or how I can prevent that.
Any workarounds? Even if I set the height on the table, it must be huge to be able to display a large list of dropdown values and that looks pretty bad on screen.
I’ve gone through this doc several times but the solution is always a fixed height. I really cannot have a fixed height, and I just want to be able to see the dropdown menus. For some reason, the date picker doesn’t care about overflow (although it has it’s own problems of going off the page entirely..)
I kind of give up at this point - now I am trying to create a custom editor with React. Unfortunately nothing in the documentation works, and seems outdated or just wrong. Do you have any examples of actually creating working custom editors in React?
the values don’t have to be px, it can be any value but some height must be set or inherited - if the div doesn’t have a height then the table has nowhere to get it from, unless you give it auto and it expands, but with overflow we can’t do much because it probably serves some purpose
Yes that makes sense about the height. It would be great if Handsontable had a dropdown version or option to use absolute position like the datepicker because the existing one gets hidden in a small table with few rows if you are unable to set a large static table height. The tables I am constructing consist of only a few rows, so the dropdown is not even visible.
I was able to use the cell editor which in the end is actually quite impressive; that I was able to throw in an existing React Select component and then just absolute position its parent. After some hacking around it works for me just how I want it.
I hope you guys can also improve the datepicker in a similar way - I know it’s a tough one but when it’s at the edge of a table, it is un-usable (maybe it could pop up, or just have smarter positioning, like the middle of the table, idk!).