Skip to content
Permalink
Browse files
Full-screen video's frame is incorrect in some cases
https://bugs.webkit.org/show_bug.cgi?id=245000
<radar://97807434>

Reviewed by Jer Noble.

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

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

Canonical link: https://commits.webkit.org/254462@main
  • 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];
#if HAVE(UIKIT_WEBKIT_INTERNALS)
[_window setFrame:CGRectMake(0, 0, 960, 540)];
[_window setNeedsLayout];
[_window layoutIfNeeded];
#endif

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

0 comments on commit 06a4ed0

Please sign in to comment.