Skip to content

[Feature]Allow ConstrainedBox to have a maximum size #4820

Open
@TyJOrtiz

Description

@TyJOrtiz

Describe the problem

Currently, the constrained box is set at a specified aspect ratio. Depending on screen size and aspect ratio, this could cause the control to become too small,
image

or too large (filling up or going past the screen)

image

Describe the solution

Allow devs to specify a minimum and/or maximum height without messing with width. This will allow devs to have a control that follows an aspect ratio but also control behavior at certain sizes.

For example, I used the control as a header to display music artist artwork. with the current control, my desired aspect ratio is 16:9 but on widescreen devices, the header often takes up the entire window height. with the control I created, I can have that aspect ratio but with the max height I set (of 500), it will stop increasing in height when it gets wider, allowing the rest of the page's content to remain on screen.
msedge_0LMKvLuqlu

Alternatives

No response

Additional info

No response

Help us help you

Yes, but only if others can assist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionalitypartner ⏹Label for issues that are being depended on or blocking Toolkit partners.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions