Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (required)
This solves the issue resulting from the
virtualScroll
option of bootstrap-select that adds top and bottom margins to the inner dropdown in order to simulate a long list without loading all the option elements in the DOM. When performing another search that is shorter, the margins need to be reset.Screenshots (optional)
Before
![screen shot 2018-07-24 at 3 36 00 pm](https://user-images.githubusercontent.com/451965/43162060-e45d8166-8f57-11e8-8492-c0611d9a0b8b.png)
After
![screen shot 2018-07-24 at 3 36 50 pm](https://user-images.githubusercontent.com/451965/43162075-ed585368-8f57-11e8-9c0a-5247ec69d7de.png)
Closes Issue (optional)
Closes #156
Merge checklist (required, for maintainers only)
This pull request adheres to the following requirements: