From f4bfba2f78d248254478e7af78a4b884cc663f4b Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 4 Oct 2013 13:05:19 -0700 Subject: [PATCH] Fixing ipad sharing mismatch on height. --- clients/ios/Classes/NBContainerViewController.m | 6 +++--- clients/ios/Classes/NewsBlurAppDelegate.m | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/ios/Classes/NBContainerViewController.m b/clients/ios/Classes/NBContainerViewController.m index 7019b2c28..2de169c62 100644 --- a/clients/ios/Classes/NBContainerViewController.m +++ b/clients/ios/Classes/NBContainerViewController.m @@ -813,10 +813,10 @@ } } else { if (UIInterfaceOrientationIsPortrait(orientation)) { - storyNavigationFrame.size.height = vb.size.height - NB_DEFAULT_SHARE_HEIGHT + 44; + storyNavigationFrame.size.height = vb.size.height - NB_DEFAULT_SHARE_HEIGHT + 64; shareViewFrame.origin.y = vb.size.height - NB_DEFAULT_SHARE_HEIGHT; } else { - storyNavigationFrame.size.height = vb.size.height - NB_DEFAULT_SHARE_HEIGHT + 44; + storyNavigationFrame.size.height = vb.size.height - NB_DEFAULT_SHARE_HEIGHT + 64; shareViewFrame.origin.y = vb.size.height - NB_DEFAULT_SHARE_HEIGHT; } } @@ -851,7 +851,7 @@ vb.size.height, self.storyNavigationController.view.frame.size.width, NB_DEFAULT_SHARE_HEIGHT); - if (UIInterfaceOrientationIsPortrait(orientation)) { + if (UIInterfaceOrientationIsPortrait(orientation) && !self.storyTitlesOnLeft) { self.storyNavigationController.view.frame = CGRectMake(self.storyNavigationController.view.frame.origin.x, 0, self.storyNavigationController.view.frame.size.width, diff --git a/clients/ios/Classes/NewsBlurAppDelegate.m b/clients/ios/Classes/NewsBlurAppDelegate.m index 85884acfe..6b9d8f813 100644 --- a/clients/ios/Classes/NewsBlurAppDelegate.m +++ b/clients/ios/Classes/NewsBlurAppDelegate.m @@ -1075,9 +1075,9 @@ BOOL recentlyRead = [[self.recentlyReadStories objectForKey:[story objectForKey:@"story_hash"]] boolValue]; - NSLog(@"isUnread: (%d || %d) && %d (%@ / %@)", readStatusUnread, storyHashUnread, - !recentlyRead, [[story objectForKey:@"story_title"] substringToIndex:10], - [story objectForKey:@"story_hash"]); +// NSLog(@"isUnread: (%d || %d) && %d (%@ / %@)", readStatusUnread, storyHashUnread, +// !recentlyRead, [[story objectForKey:@"story_title"] substringToIndex:10], +// [story objectForKey:@"story_hash"]); return (readStatusUnread || storyHashUnread) && !recentlyRead; }