The reason was because I read the variable before the default animation had finished so the value had yet to be updated.
This is fine once the animation has finished, but is it possible to read that default value (of 74 pixels) from a constant somewhere? Is there a magic header file somewhere with UI constants?
|