Closed japrogramer closed 5 years ago
Indeed, it could be computed automatically, however, I'm not planning to do it any time soon. The all you need is to tweak styles bounded to rta__autocomplete
(or pass your own style, or className) class to suit your case.
I tried to use the dropdownStyle but it seems that the position top and bottom are passed to Autocomplete are computed on the componentDidUpdate so there is no way to change the top bottom like that.
dropdownStyle={{zIndex: 2, top, bottom}}
Yep. That's correct. You should use margin
https://github.com/webscopeio/react-textarea-autocomplete/blob/master/style.css#L29
I'm closing this but let's continue if you need, but I hope in your case, you just need to tune margin-top
, margin-left
values.
after the trigger causes the dropdown to show the actual dropdown element cuts off the text after by about half
I suggest that we take into account the elements line height , the random hovering button is a firefox bug.
something like so