Never compare something like IsShown() to an explicit value like 1 or true, you should pretty much always just do "if not f:IsShown() then" to check that it's not being shown.
I don't think OnSizeChanged can even fire for a hidden frame, anyway.
Just remove the line, it doesn't do anything. It's breaking the function because IsShown() can never return 1 (it returns true on the beta).
This is not the only place you're comparing IsShown() to 1, so you'll have to clean up a few other areas.
Last edited by semlar : 10-12-14 at 06:54 AM.
|