mat-option: Unable to Set Height
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
Changing the height of a mat-option
element shouldn’t impact where the selected item appears inside
mat-select-content
What is the current behavior?
Pre Beta.12 setting an explicit height for mat-option
worked as excepted. Post Beta.12 modifying the option height makes the selected option appear outside the visible mat-select-content
area.
What are the steps to reproduce?
https://plnkr.co/edit/CULSXZovARH9HdKFm3d4?p=preview
This is a standard mat-select
with an explicit height set on mat-option
(35px).
- Open select
- Selected item is not visible
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.4.3 Material: 2.0.0-beta.12 OS: Windows 10 Typescript: 2.2.2 Browser: Chrome Version 61.0.3163.100 (Official Build) (64-bit)
Many apologies guys if this one is already logged too. I am searching around before logging but sometimes it’s hard to find open/related issues.
Thanks so much!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
In angular7, how do I change the height of a mat-select when ...
First ::ng-deep .mat-select-panel in a component actually DOES define this css for the global space. So as soon as your component is used...
Read more >mat-select-filter - npm
The mat-select-filter is a filterer for the material select drop downs. They currently do not support this so I decided to make my...
Read more >How to Select Mat Type in Design Space - Cricut - Help
You'll need to select your mat Type in Design Space to tell your Cricut Joy machine if you're using Smart Materials, A Card...
Read more >Autocomplete | Angular Material
Takes classes set on the host mat-autocomplete element and applies them to the panel inside the ... The currently active option, coerced to...
Read more >can't bind to 'value' since it isn't a known property of 'mat-option'
I have fixed this error. In aspnnetzero there are two files where it needs to import DataTable. I had to import DataTable in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep it may have worked, but all our calculations are based around a certain height for the options.
Bummer. OK thanks for clearing that up.