Skip to content

Commit 44d7b32

Browse files
author
Josh Johnson
committed
updated to properly size the incoming frame
1 parent c65d188 commit 44d7b32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TWTSideMenuViewController/TWTSideMenuViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ - (void)setMainViewController:(UIViewController *)mainViewController animated:(B
231231
[self addShadowToViewController:incomingViewController];
232232
[self addViewController:incomingViewController];
233233
[self.containerView addSubview:incomingViewController.view];
234-
234+
235+
incomingViewController.view.frame = self.containerView.bounds;
235236
incomingViewController.view.transform = CGAffineTransformTranslate(incomingViewController.view.transform, outgoingStartX, 0.0f);
236237

237238
void (^swapChangeBlock)(void) = ^{

0 commit comments

Comments
 (0)