From 15676e0f4ffeb25691e07fe84eba898b08b35893 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 21 Oct 2023 18:32:23 +0000 Subject: [PATCH] Resize on rotation on iOS. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4564 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ios.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ios.m b/src/ios.m index 1d2545b2..5d65d78a 100644 --- a/src/ios.m +++ b/src/ios.m @@ -27,6 +27,7 @@ static void _start_initial_load(WKWebView* web_view) self.web_view = [[WKWebView alloc] initWithFrame:self.view.frame configuration:configuration]; self.web_view.UIDelegate = self; self.web_view.navigationDelegate = self; + self.web_view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; [self.view addSubview:self.web_view]; _start_initial_load(self.web_view); }