mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
iOS: fixed traverse positioning
This commit is contained in:
parent
6bdbad53ce
commit
419b414272
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue