Fixed #772 (story traversal buttons misaligned)

This commit is contained in:
David Sinclair 2015-10-24 20:58:00 -07:00
parent ff42d673c2
commit fbd8d62be1

View file

@ -230,6 +230,14 @@
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// Fix the position and size; can probably remove this once all views use auto layout
CGRect viewFrame = self.view.frame;
CGSize superSize = self.view.superview.bounds.size;
if (viewFrame.size.height > superSize.height) {
self.view.frame = CGRectMake(viewFrame.origin.x, viewFrame.origin.y, viewFrame.size.width, superSize.height);
}
}
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {