Resize on rotation on iOS.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4564 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-10-21 18:32:23 +00:00
parent 8709ce8ad5
commit 15676e0f4f

View File

@ -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);
}