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
I'm getting somewhat desperate here:
I'm trying to have a UI, that will (mostly) scale with the size of the window.
While that in itself works I want to be able to have Images, that keep their aspect ratio while e.g. filling the height of the parent node. I have little experience with UI work in general so maybe I just don't know the magic phrase.
Anyway I tried different styles for the parent node and the ImageBundle.
Sadly it seems to always want to fill the entire container or most of the container.
The way I am doing it at the moment is the following:
I would expect this to give me the imagebundle in the center with the correct aspect ratio but instead it fills almost the entire nodebundle (which also confuses me, as I would have expected to fill the entire nodebundle and not leave space left and right).
Can anyone tell me where I'm making the mistake? Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm getting somewhat desperate here:
I'm trying to have a UI, that will (mostly) scale with the size of the window.
While that in itself works I want to be able to have Images, that keep their aspect ratio while e.g. filling the height of the parent node. I have little experience with UI work in general so maybe I just don't know the magic phrase.
Anyway I tried different styles for the parent node and the ImageBundle.
Sadly it seems to always want to fill the entire container or most of the container.
The way I am doing it at the moment is the following:
Generate the ImageBundle for later insertion
Function to create a UI segment (used because I want a background foreground)
Actual Invocation
I would expect this to give me the imagebundle in the center with the correct aspect ratio but instead it fills almost the entire nodebundle (which also confuses me, as I would have expected to fill the entire nodebundle and not leave space left and right).
Can anyone tell me where I'm making the mistake? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions