iOS 6 compatibility
Formatting
Since frame is undefined when a UIView has a non-identity transform, use its bounds to calculate the desired transform for its hidden state instead.