handsontable
handsontable copied to clipboard
Incorrect DropdownEditor's height if we set height as 'auto' for a table
Description
If we initialize Handsontable with height set as auto
, then DropdownEditor's height will be much shorter than it should be.
Steps to reproduce
- Go to the demo
- Click on the DropdownEditor's button in one of these three cells
Result: Editor is open, but options are not visible.
Now remove height: 'auto'
from the initialization object and repeat the above steps.
Demo
https://jsfiddle.net/6j43qwz5/
Related issues
- #3828
Your environment
- Handsontable version: any
- Browser Name and version: any
- Operating System: any
Inform forum
Testing this behavior on the newest Chrome 96 on macOS Monterey 12.0.1 using reported Handsontable v9.0.0 I also see the editor being cut and visually altered
If there are only two rows the list of choices does not show
Behavior also replicable in Handsontable v11 (updated demo https://jsfiddle.net/14kgumxb/3/)
Removed from v12.1.0.
We had a fix for this, but we reverted it. We will make another attempt. Some details in the internal discussion: https://handsoncode.slack.com/archives/C01SYSTAGCT/p1655993690103669?thread_ts=1655915253.916219&cid=C01SYSTAGCT
Inform Forum
Hello, Handsontable team! Is there any workaround to fix this issue? Or any update in which version it will be fixed?
Hi @anlagno
The current workaround for this is either not to set the height option at all or to set it to a fixed value. Then the dropdown menu will be rendered correctly.