-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: material/selectfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
Description
Feature Description
Currently MatSelectConfig
offers the panelWidth property with 3 possible values :
'auto'
- The panel will match the trigger width.- A specific value (ex :
40px
) null
- The panel will grow to match the longest option's text.
What I need is a mix between auto
and null
:
- If the longest option's text is bigger than the trigger width, the panel would grow to match the longest option's text.
- If the longest option's text is smaller than the trigger width, the panel would match the trigger width
I suggest to name this new behavior: GrowIfLargerThanTriggerWidth
Use Case
If the options of the MatSelect
are data driven (ex: coming from a database), we cannot define a specific width for the panel. None of the possible values of panelWidth
offer a satisfying result :
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: material/selectfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix