Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to resize element to canvas size/ratio #4

Open
SoylentGraham opened this issue Mar 18, 2024 · 0 comments
Open

Option to resize element to canvas size/ratio #4

SoylentGraham opened this issue Mar 18, 2024 · 0 comments
Labels
Unity Integration Something specific to uitoolkit integration

Comments

@SoylentGraham
Copy link
Member

Currently the canvas(and thus the content) is resized to fit the content rect.

There will be times where we want to make use of flexbox/uitoolkit's DOM alignment (leading, top, right align, match text etc), and I think the only real way to do that will be to set the .width and .height to the original canvas size.

The user can then scale, and align the rest of the dom appropriately.

  • Check what image elements do (I think images are only ever backgrounds, so never dictate an element size??)
@SoylentGraham SoylentGraham added the Unity Integration Something specific to uitoolkit integration label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unity Integration Something specific to uitoolkit integration
Projects
None yet
Development

No branches or pull requests

1 participant