MudBlazor/MudBlazor

MudSelect - Allow dropdown(PopOver) to scale to content

Offen

#4.036 geöffnet am 24.02.2022

 (2 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)C# (1.631 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (10.394 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 6h) (108 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide