Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: deckard on December 27, 2012, 10:28:48 AM

Title: list of buttons in Contener
Post by: deckard on December 27, 2012, 10:28:48 AM
Hello everyone!

I have a question:
how to organize a list of buttons of varying sizes to keep them in a Contener.

(http://data.imagup.com/12/1171287670.jpg)

UIgrid: the problem is fixed but the width is the width of the buttons depends on the text.
Uitable: the problem is that if a button is too wide, the column creates a space too large buttons below
Title: Re: list of buttons in Contener
Post by: Nicki on December 27, 2012, 11:20:58 AM
Well, you would usually do one of those two - either static sized cells (UIGrid) or dynamic cells (UITable). If they have to be arbitrarily wide, you have to either use UITable or set the UIGrid cellWidth and cellHeight after you know the contents (and then reposition).