File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ECSlidingViewController/Vendor/ECSlidingViewController Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ @implementation ECSlidingViewController
93
93
94
94
- (void )setTopViewController : (UIViewController *)theTopViewController
95
95
{
96
+ CGRect topViewFrame = _topViewController ? _topViewController.view .frame : self.view .bounds ;
97
+
96
98
[self removeTopViewSnapshot ];
97
99
[_topViewController.view removeFromSuperview ];
98
100
[_topViewController willMoveToParentViewController: nil ];
@@ -104,7 +106,7 @@ - (void)setTopViewController:(UIViewController *)theTopViewController
104
106
[self .topViewController didMoveToParentViewController: self ];
105
107
106
108
[_topViewController.view setAutoresizingMask: self .autoResizeToFillScreen];
107
- [_topViewController.view setFrame: self .view.bounds ];
109
+ [_topViewController.view setFrame: topViewFrame ];
108
110
_topViewController.view .layer .shadowOffset = CGSizeZero;
109
111
_topViewController.view .layer .shadowPath = [UIBezierPath bezierPathWithRect: self .view.layer.bounds].CGPath ;
110
112
You can’t perform that action at this time.
0 commit comments