| Index: remoting/client/ios/app/remoting_view_controller.mm
|
| diff --git a/remoting/client/ios/app/remoting_view_controller.mm b/remoting/client/ios/app/remoting_view_controller.mm
|
| index 7e22899e0fdc5d2683f85d00f65d522352329be1..1520e0bfdcd7000ee3d4f7e912a118a1faf509c9 100644
|
| --- a/remoting/client/ios/app/remoting_view_controller.mm
|
| +++ b/remoting/client/ios/app/remoting_view_controller.mm
|
| @@ -106,6 +106,20 @@ static CGFloat kHostInset = 5.f;
|
| }
|
| }
|
|
|
| +- (void)viewDidLayoutSubviews {
|
| + [super viewDidLayoutSubviews];
|
| +
|
| + // Adjust the collection view's position and size so that it doesn't get
|
| + // overlayed by the navigation bar.
|
| + CGFloat collectionOffsetY =
|
| + _appBar.headerViewController.headerView.frame.size.height;
|
| + CGFloat collectionHeight = self.view.bounds.size.height - collectionOffsetY;
|
| + CGRect oldFrame = _collectionViewController.collectionView.frame;
|
| + _collectionViewController.collectionView.frame =
|
| + CGRectMake(oldFrame.origin.x, collectionOffsetY, oldFrame.size.width,
|
| + collectionHeight);
|
| +}
|
| +
|
| #pragma mark - RemotingAuthenticationDelegate
|
|
|
| - (void)nowAuthenticated:(BOOL)authenticated {
|
|
|