Skip to content

feat(material/autocomplete) settable height of option; settable height of panel #18047

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

Closed

Conversation

DmitryAstafyev
Copy link

feat(material/autocomplete) settable height of option; settable height of panel

Allows defining a height of option and a height of panel by setting optionHieght or/and panelHeight inputs on mat-autocomplete component.

Fixes: #18030
Related to: #3810, #10038

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added the cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla label Dec 26, 2019
@DmitryAstafyev
Copy link
Author

@googlebot I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes PR author has agreed to Google's Contributor License Agreement and removed cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla labels Dec 26, 2019
@DmitryAstafyev DmitryAstafyev force-pushed the option-height-support branch 2 times, most recently from f4d6c4e to 1fa23fa Compare December 26, 2019 16:24
@andreialecu
Copy link

There are so many github and stackoverflow issues related to this. Please get it merged. :)

@DmitryAstafyev
Copy link
Author

There are so many github and stackoverflow issues related to this. Please get it merged. :)

Fixed api_golden_checks, all checks looks good, hope the process will go forward.

@xigolle
Copy link

xigolle commented Feb 11, 2020

Is there any update on this PR/Feature it sounds like it is a pretty requested future and I am personally also waiting for this.

@DmitryAstafyev DmitryAstafyev requested review from crisbeto, devversion, jelbourn, alexeagle and ErinCoughlan and removed request for jelbourn and crisbeto February 11, 2020 11:38
@DmitryAstafyev
Copy link
Author

DmitryAstafyev commented Feb 29, 2020

pull request was created in 2019. All checks were good. A couple of times I've updated a pull-request to fit last updates of master. But it looks like nobody interests; even the community asks for such changes.

Well, I also don't have time to resolve every few weeks of new conflicts, without any kind of feedback from developers.

Sorry.

@Totati
Copy link
Contributor

Totati commented Mar 1, 2020

Wouldn't it be better if we could provide the heights with InjectionToken too? 😇 We need this feature too in many places.

…t of panel

Allows defining a height of option and a height of panel by setting optionHieght or/and panelHeight inputs on mat-autocomplete component.

Fixes: angular#18030
Related to: angular#3810, angular#10038
@DmitryAstafyev DmitryAstafyev force-pushed the option-height-support branch from a6096ff to e41425f Compare March 1, 2020 16:29
@DmitryAstafyev
Copy link
Author

@Totati All conflicts are resolved.
@crisbeto, @devversion, @jelbourn, @alexeagle what do you think? Is there any chance to be merged?

@jelbourn
Copy link
Member

jelbourn commented Mar 3, 2020

We're not sure that this is something we can support once the autocomplete is based on MDC-web, so any progress on this feature is blocked until that's further along.

@DmitryAstafyev
Copy link
Author

MDC-web

@jelbourn Thanks for the reply first of all. Why MDC should block this feature? As default autocomplete component will fit MDC completely. But optionally, optionally, it would be great to have a way to change the height of items inside. Really, there are so many cases where >40px of height is too much.

@jelbourn
Copy link
Member

jelbourn commented Mar 4, 2020

It's just of making sure it integrates well into the system. The biggest part is ensuring that it fits with density API we're adding in https://github.com/angular/components/tree/density-api (which is on top of MDC's density API). Ideally I want to avoid adding run-time APIs (which increase the JS size) for theming-related concerns, which includes density.

@DmitryAstafyev
Copy link
Author

@jelbourn can I help somehow? I don't know, maybe change code somehow?
About the amount of code:

856 lines added in total, but:
- 135 lines is a feature code
- rest lines: tests specification and MD 

So, there is not so much JS stuff.

In any way, can I do something to help you and angular team with it?

@jelbourn
Copy link
Member

jelbourn commented Mar 6, 2020

Probably not until we make more progress with the MDC-based version of MatAutocomplete

@crisbeto
Copy link
Member

Once #20324 goes in you'll be able to control the option height through CSS so these changes shouldn't be necessary.

@andrewseguin andrewseguin removed the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 28, 2021
@andrewseguin
Copy link
Contributor

Closing since the change should be fixed with #20324

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MatAutocomplete using custom height of MatOption (AUTOCOMPLETE_OPTION_HEIGHT issue)
8 participants