Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollable element the placement (height) of the typeahead dropdown is calculated wrong #1

Closed
bassjobsen opened this issue Sep 7, 2013 · 1 comment
Labels

Comments

@bassjobsen
Copy link
Owner

When add a typehead to a scrollable element the placement (height) of the typeahead dropdown is calculated wrong, See: http://bootply.com/66845 (remove the javascript to see the problem)
The scrollHeight (int or function) option can be used to correct this problem.

Example for typeahead input in the Modal use:

scrollHeight: function() { return $('.modal-body').scrollTop(); }

Refer: twbs/bootstrap#8436
Example: http://stackoverflow.com/questions/17548252/multiple-fields-with-twitters-bootstrap-typehead-inside-a-modal/17559998

bassjobsen added a commit that referenced this issue Sep 7, 2013
@bassjobsen
Copy link
Owner Author

This issue has been fixed. For TB3 there is no need for this fixes to use in Modal. In TB3 the modal scrolls over the viewport instead of scrolling it self. The dropdown position won't change when scolling the viewport.
Fixes are still useful when using this plugin with Twitter's Bootstrap <3.0 (like 2.3.2).

bassjobsen added a commit that referenced this issue Nov 25, 2013
bassjobsen pushed a commit that referenced this issue Jan 30, 2016
Allow highlighter to modify HTML based on item properties
bassjobsen pushed a commit that referenced this issue May 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant