question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mat-option: Unable to Set Height

See original GitHub issue

Bug, 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).

  1. Open select
  2. 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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
crisbetocommented, Oct 26, 2017

Yep it may have worked, but all our calculations are based around a certain height for the options.

2reactions
mikeomeara1commented, Oct 26, 2017

Bummer. OK thanks for clearing that up.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found