Skip to content

Commit

Permalink
Merge pull request #1938 from wikimedia/bug/reshow-nav-on-toc-select/T…
Browse files Browse the repository at this point in the history
…180835

Reshow nav on TOC selection.
  • Loading branch information
Natalia Harateh committed Nov 17, 2017
2 parents 244594e + e573f94 commit 27e42f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wikipedia/Code/WebViewController.m
Expand Up @@ -640,14 +640,13 @@ - (WKWebViewConfiguration *)configuration {
forMainFrameOnly:YES]];

WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];

#if DEBUG || TEST
if (self.wkUserContentControllerTestingConfigurationBlock) {
self.wkUserContentControllerTestingConfigurationBlock(userContentController);
}
#endif


configuration.userContentController = userContentController;
configuration.applicationNameForUserAgent = @"WikipediaApp";
return configuration;
Expand Down Expand Up @@ -836,6 +835,7 @@ - (void)scrollToFragment:(NSString *)fragment animated:(BOOL)animated {
}

- (void)scrollToSection:(MWKSection *)section animated:(BOOL)animated {
self.navBarHidden = false;
[self scrollToFragment:section.anchor animated:animated];
}

Expand Down

0 comments on commit 27e42f7

Please sign in to comment.