javascript - Handsontable autocomplete pop/display above cell -


are there relatively simple ways autocomplete pop above cell when it's not going visible below it?

i prefer not modify handsontable.js or introduce new packages if @ possible.

right using z-index able force show on footer, still prefer went instead of down.

i have looked @ https://github.com/trebuchetty/handsontable-select2-editor, i'd prefer not introduce new package.

there way without package mean coming interesting jquery logic. you'd want following:

add event on dropdown calculates height, using selector.height(), , adds current position. if new value larger bottom line on table, overflowed, want move calculating new position , setting it.

this fun part. need think html coordinates. have top left position of dropdown, , height. put above cell, new position dropposition + dropheight + cellheight. fine first time render it, scroll, go out of whack.

i haven't written yet in future. if fiddle started, can fork , try work out more concrete solution.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -