Support => NGUI 3 Support => Topic started by: LightStorm on May 26, 2014, 04:12:03 AM
Title: UILabel small bug in Editor Play mode
Post by: LightStorm on May 26, 2014, 04:12:03 AM
Hi. There is a small bug in UILabel in NGUI v3.6.1. I'm trying to change content of label while it's disabled and then get Height of it. Inside Editor Play mode label returns wrong (old) sizes. But builded app works ok. I think this should be fixed by adding Application.isPlaying check in ProcessAndRequest method in UILabel.cs, so label will be updated in Editor Play mode even if disabled. Thanks!
Title: Re: UILabel small bug in Editor Play mode
Post by: ArenMook on May 26, 2014, 10:57:00 PM
Ideally if you are trying to get the printed size of something you should use NGUIText.CalculatePrintedSize directly. Disabled labels don't really need to request the text to be processed. That said, I don't foresee any negative side effects of your change. I'll add it and see if I notice anything.