vchelaru / Gum

Flexible layout tool for creating UI on any platform
http://gumui.net/
MIT License
147 stars 32 forks source link

Clarification on Percentage of File Width/Height #159

Closed tomcashman closed 5 months ago

tomcashman commented 5 months ago

We have an image that is 7972x5891 and are using Percentage of File Width/Height for it's size. We've set the percentage to 8% in both dimensions, and would expect it to render at around 637x471. However, it renders at 527x354 in Gum (editor is set to 100% zoom).

Does something else factor into the percentage calculation?

vchelaru commented 5 months ago

This may actually be a problem with the image being too large. The problem is that gum is built on XNA and I believe XNA has a limitation of 4096 for image dimensions. You can verify this is the case by trying a smaller image equal to or less than 4096 to see if the behaves the way you expect.

tomcashman commented 5 months ago

Confirming that this was the issue. Thanks for the quick reply.