Browse Source

Fixes setDrawBehindTabBar unnecessary call to setExtendedLayoutIncludesOpaqueBars

yogevbd 6 years ago
parent
commit
67d3d10754
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/ios/UIViewController+RNNOptions.m

+ 1
- 1
lib/ios/UIViewController+RNNOptions.m View File

56
 
56
 
57
 - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind {
57
 - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind {
58
 	if (drawBehind) {
58
 	if (drawBehind) {
59
+		[self setExtendedLayoutIncludesOpaqueBars:YES];
59
 		self.edgesForExtendedLayout |= UIRectEdgeTop;
60
 		self.edgesForExtendedLayout |= UIRectEdgeTop;
60
 	} else {
61
 	} else {
61
 		self.edgesForExtendedLayout &= ~UIRectEdgeTop;
62
 		self.edgesForExtendedLayout &= ~UIRectEdgeTop;
67
 		[self setExtendedLayoutIncludesOpaqueBars:YES];
68
 		[self setExtendedLayoutIncludesOpaqueBars:YES];
68
 		self.edgesForExtendedLayout |= UIRectEdgeBottom;
69
 		self.edgesForExtendedLayout |= UIRectEdgeBottom;
69
 	} else {
70
 	} else {
70
-		[self setExtendedLayoutIncludesOpaqueBars:NO];
71
 		self.edgesForExtendedLayout &= ~UIRectEdgeBottom;
71
 		self.edgesForExtendedLayout &= ~UIRectEdgeBottom;
72
 	}
72
 	}
73
 }
73
 }