Commit eb025716 authored by Soomin Lee's avatar Soomin Lee

VLCPlayerDisplayController: Fix rotation resizing

With the hierarchy changes from `4f4e0033`, the view on the controller
stopped receiving callbacks for rotation(transitions). This led to
the miniplayer being broken on rotation.
parent 3792ba59
......@@ -66,14 +66,7 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
- (void)viewDidLoad
self.view = [[VLCUntouchableView alloc] initWithFrame:self.view.frame];
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
self.view.frame = CGRectMake(0, 0, size.width, size.height);
} completion:nil];
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
#pragma mark - properties
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment