iOS: fixed traverse positioning

This commit is contained in:
David Sinclair 2016-03-09 18:01:32 -08:00
parent 6bdbad53ce
commit 419b414272

View file

@ -587,7 +587,7 @@
CGRect pageFrame = pageController.view.bounds; CGRect pageFrame = pageController.view.bounds;
pageFrame.origin.y = 0; pageFrame.origin.y = 0;
pageFrame.origin.x = CGRectGetWidth(self.view.bounds) * newIndex; pageFrame.origin.x = CGRectGetWidth(self.view.bounds) * newIndex;
pageFrame.size.height = CGRectGetHeight(self.view.bounds); pageFrame.size.height = CGRectGetHeight(self.view.bounds) - self.bottomSizeHeightConstraint.constant;
pageController.view.hidden = NO; pageController.view.hidden = NO;
pageController.view.frame = pageFrame; pageController.view.frame = pageFrame;
} else { } else {
@ -595,7 +595,7 @@
CGRect pageFrame = pageController.view.bounds; CGRect pageFrame = pageController.view.bounds;
pageFrame.origin.x = CGRectGetWidth(self.view.bounds) * newIndex; pageFrame.origin.x = CGRectGetWidth(self.view.bounds) * newIndex;
pageFrame.origin.y = CGRectGetHeight(self.view.bounds); pageFrame.origin.y = CGRectGetHeight(self.view.bounds);
pageFrame.size.height = CGRectGetHeight(self.view.bounds); pageFrame.size.height = CGRectGetHeight(self.view.bounds) - self.bottomSizeHeightConstraint.constant;
pageController.view.hidden = YES; pageController.view.hidden = YES;
pageController.view.frame = pageFrame; pageController.view.frame = pageFrame;
} }