Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: hexaust on December 11, 2014, 08:47:53 AM

Title: UICenterOnChild and Restrict Within Panel
Post by: hexaust on December 11, 2014, 08:47:53 AM
Has anyone got these two things working together? I tried the solution from http://www.tasharen.com/forum/index.php?topic=4033.msg20034#msg20034 (http://www.tasharen.com/forum/index.php?topic=4033.msg20034#msg20034) but it doesn't really work. I also tried adding in the onCenter callback the RestrictWithinBounds(true) and it still doesn't work.

Does anyone has a fix for this thing? I'll attach an image to show the expected behavior. Thanks!

(https://i.imgur.com/Fd7DSgM.png)
Title: Re: UICenterOnChild and Restrict Within Panel
Post by: ArenMook on December 11, 2014, 09:19:14 AM
See the other thread.
Title: Re: UICenterOnChild and Restrict Within Panel
Post by: Callabrator on December 23, 2014, 03:31:02 PM
See the other thread.

Sorry, I've looked around and am not sure exactly which other thread your referring to.  Would you mind providing a link?  Thanks.
Title: Re: UICenterOnChild and Restrict Within Panel
Post by: ArenMook on December 24, 2014, 07:06:19 AM
http://www.tasharen.com/forum/index.php?topic=10092.msg55430#msg55430