Ngx-chips: Add an option to specify dropdown placement

Created on 31 Aug 2016  路  4Comments  路  Source: Gbuomprisco/ngx-chips

I have a TagInput at the bottom of my page, which means the dropdown for autocomplete is mostly hidden, I can only see the top row. It would be great to have an option to choose its placement.

Temporary solution is to move it in an AfterViewChecked callback, which is not great.

bug

Most helpful comment

Yeah, if you could do it automatically, that would be even better. Essentially if it's not entirely in view, it should be moved to the opposite side.

All 4 comments

Hi @cyrilrbt. I need to update another package (https://github.com/Gbuomprisco/ng2-material-dropdown), so I opened an issue in there.

I guess the right way to fix it is to detect the position of the input in the page and move the dropdown to the top of the input in this case. Would that work for you?

Cheers

Yeah, if you could do it automatically, that would be even better. Essentially if it's not entirely in view, it should be moved to the opposite side.

Hi @cyrilrbt, sorry for resolving this so late, but the new version should allow the behaviour you mentioned :) It's not perfect yet, but the dropdown will at least show up in the screen

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ignasimg picture Ignasimg  路  4Comments

anikets43 picture anikets43  路  4Comments

MrBra1nwash picture MrBra1nwash  路  4Comments

sivamamidi-REISys picture sivamamidi-REISys  路  3Comments

matthewerwin picture matthewerwin  路  5Comments