Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - artfabrique

Pages: 1 2 3 [4]
46
NGUI 3 Support / Re: Is it possible to make widget fit it's content?
« on: February 01, 2014, 05:43:24 PM »
Ah.. i see so this doesn't work because it can be 100 different UILabels inside a container and i don't know wich will become too large. Anyway this would be a good feature to have a checkbox on UIWidget: "Fit inner content" and a dropdown list: "Fit width only", "Fit height only", "Both".

47
NGUI 3 Support / Is it possible to make widget fit it's content?
« on: January 31, 2014, 08:11:24 PM »
Good day!
I'm creating in-game skype-like messenger and it has contacts list on the right.
The thing is that i plan to change font size depending on physical device display size. (32px on iPhone and 18px on iPad)
So my contact list item height will be varied.
How can i make single list item wrapper(container) widget fit item content? Font size changes, and i need to update wrapper height as well...
Later i want to wrap this wrapper with another widget, twice bigger height and the inner wrapper(with all elements) should be centered vertically.
Check out scheme in attachment.

Pages: 1 2 3 [4]