#1281 (iPad widget issues)

- I managed to reproduce the layout issue, so have implemented a check and correction for it.
This commit is contained in:
David Sinclair 2020-02-20 19:32:59 -08:00
parent 48f1e5cd3b
commit fd605e079d

View file

@ -214,6 +214,15 @@
} completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
// leftBorder.frame = CGRectMake(0, 0, 1, CGRectGetHeight(self.view.bounds));
CGFloat currentMasterWidth = self.masterNavigationController.view.frame.size.width;
BOOL isInvalid = currentMasterWidth < 100.0;
if (isInvalid) {
NSLog(@"Invalid width detected: %@; correcting", @(currentMasterWidth)); // log
self.masterNavigationController.view.frame = CGRectMake(0, 0, self.masterWidth, self.view.bounds.size.height);
}
if (!self.feedDetailIsVisible) {
[self adjustLayoutCompleted:YES];
}