MudSelect - Allow dropdown(PopOver) to scale to content
#4.036 aberto em 24 de fev. de 2022
Métricas do repositório
- Stars
- (10.394 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 6h) (108 fundiu PRs em 30d)
Description
Feature request type
Enhance component
Component name
MudSelect
Is your feature request related to a problem?
Thank you for all your work on this great framework.
We are running in to an issue with MudSelect when the width of the parent container is restricted. In the current implementation the content of the drop-drown will always be scaled to the width of the parent component. Please see https://try.mudblazor.com/snippet/GOwGEmQeJIKgmjci for an example if the issue.
As I can gather. This could be addressed by the "RelativeWidth" property of the MudPopover used. At the moment RelativeWidth is hardcoded to "true". https://github.com/MudBlazor/MudBlazor/blob/179ec2ba9b1fb0676993b6240a1e45da9e4e0fd1/src/MudBlazor/Components/Select/MudSelect.razor#L25
Could we ask to have RelativeWidth exposed as a Parameter on MudSelect? This would give us more flexibility in the functionality of the component.
Describe the solution you'd like
Expose the RelativeWidth property of the MudPopover component as a parameter on MudSelect.
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project's Code of Conduct