handsontable icon indicating copy to clipboard operation
handsontable copied to clipboard

Incorrect DropdownEditor's height if we set height as 'auto' for a table

Open mrpiotr-dev opened this issue 3 years ago • 3 comments

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

  1. Go to the demo
  2. 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

mrpiotr-dev avatar Sep 01 '21 13:09 mrpiotr-dev

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

Kapture 2021-11-29 at 10 16 53

If there are only two rows the list of choices does not show

Zrzut ekranu 2021-11-29 o 10 19 04

Behavior also replicable in Handsontable v11 (updated demo https://jsfiddle.net/14kgumxb/3/)

Inform Zen, Zen, Zen

AMBudnik avatar Nov 29 '21 09:11 AMBudnik

Removed from v12.1.0.

aninde avatar Jun 27 '22 13:06 aninde

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

warpech avatar Jul 04 '22 15:07 warpech

Inform Forum

adrianszymanski89 avatar Oct 12 '22 12:10 adrianszymanski89

Hello, Handsontable team! Is there any workaround to fix this issue? Or any update in which version it will be fixed?

anlagno avatar Aug 11 '23 10:08 anlagno

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.

adrianszymanski89 avatar Aug 11 '23 10:08 adrianszymanski89