mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
#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:
parent
48f1e5cd3b
commit
fd605e079d
1 changed files with 9 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue