mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing misaligned pages bug when returning to a feed.
This commit is contained in:
parent
94136ae41b
commit
16549a026a
3 changed files with 8 additions and 1 deletions
|
@ -209,6 +209,7 @@
|
|||
self.pageFetching = NO;
|
||||
self.pageFinished = NO;
|
||||
self.feedPage = 1;
|
||||
appDelegate.activeStory = nil;
|
||||
[appDelegate.storyPageControl resetPages];
|
||||
}
|
||||
|
||||
|
|
|
@ -219,9 +219,15 @@
|
|||
CGRect frame = self.scrollView.frame;
|
||||
self.scrollView.contentSize = frame.size;
|
||||
|
||||
NSLog(@"Pages are at: %f / %f / %f", previousPage.view.frame.origin.x, currentPage.view.frame.origin.x, nextPage.view.frame.origin.x);
|
||||
currentPage.view.frame = self.scrollView.frame;
|
||||
nextPage.view.frame = self.scrollView.frame;
|
||||
previousPage.view.frame = self.scrollView.frame;
|
||||
|
||||
currentPage.pageIndex = -2;
|
||||
nextPage.pageIndex = -2;
|
||||
previousPage.pageIndex = -2;
|
||||
|
||||
}
|
||||
|
||||
- (void)refreshPages {
|
||||
|
|
|
@ -201,7 +201,7 @@ body.NB-iphone {
|
|||
left: -2px;
|
||||
bottom: -2px;
|
||||
right: -2px;
|
||||
background-color: #040;
|
||||
background-color: #000;
|
||||
opacity: .25;
|
||||
border-radius: 4px;
|
||||
display: none;
|
||||
|
|
Loading…
Add table
Reference in a new issue