Hi NGUI Support,
We're working on a project where we're pulling images from a server and displaying them inside a UIWidget, but encountering an issue with aspect ratio settings as it relates to detecting whether an image is in portrait or landscape size and scaling them appropriately. We're also doing all the settings in Javascript, just FYI, hope that's not too much of an issue as I know NGUI prefers C# but we are not proficient in it.
Currently we've managed to get the textures to anchor properly inside the UIWidget window and can force the aspect ratio, but we're having trouble finding anything in the documentation that would allow us to tell the system to check whether the texture has a larger width or height, and then based on which is the larger value apply an alternative aspect ratio.
Please help? Thanks in advance.