Fixes iOS 6 issues with autolayout.