Skip to content
Browse files
Full-screen video's frame is incorrect in some cases

Reviewed by Jer Noble.

After changing the window frame, we need to call setNeedsLayout to update the view.

* Source/WebKit/UIProcess/ios/fullscreen/
(-[WKFullScreenWindowController enterFullScreen]):

Canonical link:
  • Loading branch information
mwyrzykowski committed Sep 13, 2022
1 parent a5afba2 commit 06a4ed0bb5ccbfb29f2f32593e55775cabe27220
Showing 1 changed file with 2 additions and 0 deletions.
@@ -549,6 +549,8 @@ - (void)enterFullScreen
[_window setHidden:NO];
[_window setFrame:CGRectMake(0, 0, 960, 540)];
[_window setNeedsLayout];
[_window layoutIfNeeded];

_rootViewController = adoptNS([[UIViewController alloc] init]);

0 comments on commit 06a4ed0

Please sign in to comment.