Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: indeisoft on November 26, 2014, 09:21:40 AM
-
Hello,
I Have this layout inside a UIPanel
UILabel1
UI2DSprite
UILabel2
The content of the labels changes at runtime and is multi line
I set the anchors of all 3 like this :
left and right to the UIPanel
Bottom to none
Top -each one to the one before it
when I put text in UILabel1 the sprite shrinks instead of moving down
when I click on snap in the sprite Widget in the inspector becomes OK
How to set it properly? or maybe how to call that snap in runtime?
-
Change the pivot of all widgets to top-left. It won't work properly if it's centered.