How can I make a rectangle stretch to fit the screen without loosing its aspect ratio or overflowing? #21859
Unanswered
DanikVitek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there. I'm trying to make, essentially, a rectangle to fit in the window completely, without overflowing and with the aspect ratio being preserved. After many iterations, I was able to achieve this with HTML&CSS, but the equivalent bevy code does not seem to work.
Rust code
HTML code
Beta Was this translation helpful? Give feedback.
All reactions