You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aspectRatio and height: 100% seem to work only when width is set to undefined, but with aspectRatio and width set, then height is not required at all. (See Demo)
Why is that?
Reproducible Demo
Working fine:
aspectRatio: 1,
width: '100%',
aspectRatio: 1,
height: '100%',
width: undefined,
The text was updated successfully, but these errors were encountered:
If I understand correctly, this is the way aspectRatio is designed to work since aspectRatio controls the size of the unset dimension. If I'm misunderstanding, can you provide a snack or repro that demonstrates?
Environment
Description
aspectRatio and height: 100% seem to work only when width is set to undefined, but with aspectRatio and width set, then height is not required at all. (See Demo)
Why is that?
Reproducible Demo
Working fine:
The text was updated successfully, but these errors were encountered: