Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat(autocomplete): allow developers to specify amount of dropdown items #9307

Merged
merged 1 commit into from Sep 8, 2016

Conversation

devversion
Copy link
Member

@devversion devversion commented Aug 14, 2016

  • Adds an attribute, which allows developer to overwrite the amount of items shown in the autocomplete dropdown.
    • When the dropdown doesn't fit into the possible space it will shrink accordingly (as same as before)
    • When the specified amount of items is higher than the current matches then it will shrink (as same as before)
  • Fixes the item height deviations between CSS and JavaScript.
  • Removed the unnecessary CSS for the dropdown height, because everything will be handled from the JS (same as before)
  • Added tests for the dropdown height calculation, which make sure that everything is now calculated properly.

I really like how the items are now showing up. No cutted items anymore 🎉

Fixes #9306. Closes #8751.

…ems.

* Adds an attribute, which allows developer to overwrite the amount of items shown in the autocomplete dropdown.
  - When the dropdown doesn't fit into the possible space it will shrink accordingly (as same as before)
  - When the specified amount of items is higher than the current matches then it will shrink (as same as before)

* Fixes the item height deviations between CSS and JavaScript.
* Removed the unnecessary CSS for the dropdown height, because everything will be handled from the JS (same as before)
* Added tests for the dropdown height calculation, which make sure that everything is now calculated properly.

Fixes angular#9306. Closes angular#8751.
@devversion devversion force-pushed the feat/autocomplete-dropdown-items branch from 6f92a11 to b107ee8 Compare September 4, 2016 12:52
@devversion
Copy link
Member Author

@ThomasBurleson - Ping for review

@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Sep 7, 2016
@ThomasBurleson ThomasBurleson added the needs: review This PR is waiting on review from the team label Sep 7, 2016
@kara
Copy link
Contributor

kara commented Sep 7, 2016

@ThomasBurleson This has passed presubmit, is it ready to merge? Still has "needs review" label.

@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: presubmit needs: review This PR is waiting on review from the team labels Sep 8, 2016
@topherfangio
Copy link
Contributor

@kara Apologies, I was in the process of doing a visual review and got side-tracked. LGTM 👍

@kara
Copy link
Contributor

kara commented Sep 8, 2016

@topherfangio No worries! Just didn't want to jump the gun.

@kara kara merged commit b114302 into angular:master Sep 8, 2016
@devversion devversion deleted the feat/autocomplete-dropdown-items branch September 8, 2016 18:32
Frank3K pushed a commit to Frank3K/material that referenced this pull request Sep 11, 2016
…ems. (angular#9307)

* Adds an attribute, which allows developer to overwrite the amount of items shown in the autocomplete dropdown.
  - When the dropdown doesn't fit into the possible space it will shrink accordingly (as same as before)
  - When the specified amount of items is higher than the current matches then it will shrink (as same as before)

* Fixes the item height deviations between CSS and JavaScript.
* Removed the unnecessary CSS for the dropdown height, because everything will be handled from the JS (same as before)
* Added tests for the dropdown height calculation, which make sure that everything is now calculated properly.

Fixes angular#9306. Closes angular#8751.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants