Skip to content

Commit f866037

Browse files
committed
Allow under views to modify their frame. fixes ECSlidingViewController#78
1 parent ef3574b commit f866037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ - (void)underLeftWillAppear
504504
[[NSNotificationCenter defaultCenter] postNotificationName:ECSlidingViewUnderLeftWillAppear object:self userInfo:nil];
505505
});
506506
[self.underRightView removeFromSuperview];
507-
[self.view insertSubview:self.underLeftView belowSubview:self.topView];
508507
[self updateUnderLeftLayout];
508+
[self.view insertSubview:self.underLeftView belowSubview:self.topView];
509509
_underLeftShowing = YES;
510510
_underRightShowing = NO;
511511
}
@@ -516,8 +516,8 @@ - (void)underRightWillAppear
516516
[[NSNotificationCenter defaultCenter] postNotificationName:ECSlidingViewUnderRightWillAppear object:self userInfo:nil];
517517
});
518518
[self.underLeftView removeFromSuperview];
519-
[self.view insertSubview:self.underRightView belowSubview:self.topView];
520519
[self updateUnderRightLayout];
520+
[self.view insertSubview:self.underRightView belowSubview:self.topView];
521521
_underLeftShowing = NO;
522522
_underRightShowing = YES;
523523
}

0 commit comments

Comments
 (0)