#1489 and #1492 (story content bottom space)

This commit is contained in:
David Sinclair 2021-05-29 21:36:50 -07:00
parent fbedad1c7e
commit bbbe9601e3
2 changed files with 0 additions and 29 deletions

View file

@ -104,7 +104,6 @@
- (void)updateStatusBarState;
- (void)setNavigationBarHidden:(BOOL)hide;
- (void)setNavigationBarHidden:(BOOL)hide alsoTraverse:(BOOL)alsoTraverse;
- (void)adjustDragBar:(UIInterfaceOrientation)orientation;
//- (void)transitionFromFeedDetail;
- (void)resetPages;

View file

@ -351,7 +351,6 @@
UIInterfaceOrientation orientation = self.view.window.windowScene.interfaceOrientation;
[self layoutForInterfaceOrientation:orientation];
[self adjustDragBar:orientation];
[self reorientPages];
}
@ -433,7 +432,6 @@
UIInterfaceOrientation orientation = self.view.window.windowScene.interfaceOrientation;
self->_orientation = orientation;
[self layoutForInterfaceOrientation:orientation];
[self adjustDragBar:orientation];
[self reorientPages];
} completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
// NSLog(@"---> Story page control did re-orient: %@ / %@", NSStringFromCGSize(self.scrollView.bounds.size), NSStringFromCGSize(size));
@ -474,7 +472,6 @@
UIInterfaceOrientation orientation = self.view.window.windowScene.interfaceOrientation;
[self layoutForInterfaceOrientation:orientation];
[self adjustDragBar:orientation];
}
- (BOOL)shouldHideStatusBar {
@ -607,31 +604,6 @@
return ![otherGestureRecognizer isKindOfClass:[UIScreenEdgePanGestureRecognizer class]];
}
- (void)adjustDragBar:(UIInterfaceOrientation)orientation {
// CGRect scrollViewFrame = self.scrollView.frame;
// CGRect traverseViewFrame = self.traverseView.frame;
if (self.isPhoneOrCompact ||
UIInterfaceOrientationIsLandscape(orientation)) {
// scrollViewFrame.size.height = self.scrollView.bounds.size.height;
// self.bottomSize.hidden = YES;
[self.bottomSizeHeightConstraint setConstant:0];
[self.scrollBottomConstraint setConstant:0];
[bottomSize setHidden:YES];
} else {
// scrollViewFrame.size.height = self.scrollView.bounds.size.height - 12;
// self.bottomSize.hidden = NO;
[self.bottomSizeHeightConstraint setConstant:12];
[self.scrollBottomConstraint setConstant:-12];
[bottomSize setHidden:NO];
}
[self.view layoutIfNeeded];
// self.scrollView.frame = scrollViewFrame;
// traverseViewFrame.origin.y = scrollViewFrame.size.height - traverseViewFrame.size.height;
// self.traverseView.frame = traverseViewFrame;
}
- (void)highlightButton:(UIButton *)b {
if (![b isKindOfClass:[UIButton class]]) return;
[b setHighlighted:YES];