Mhurd has uploaded a new change for review.
https://gerrit.wikimedia.org/r/190129
Change subject: Prevent license text size from growing on rotate.
......................................................................
Prevent license text size from growing on rotate.
Change-Id: Ib06dab41867e5399789094a2c762250936a7f102
---
M wikipedia/View Controllers/About/AboutViewController.m
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia
refs/changes/29/190129/1
diff --git a/wikipedia/View Controllers/About/AboutViewController.m
b/wikipedia/View Controllers/About/AboutViewController.m
index b3d9a9a..ed93cf3 100644
--- a/wikipedia/View Controllers/About/AboutViewController.m
+++ b/wikipedia/View Controllers/About/AboutViewController.m
@@ -353,8 +353,10 @@
{
if(!([[self class] isLicenseURL:[webView.request URL]] || [[self class]
isLicenseRedirectURL:[webView.request URL]])){
[self injectAboutPageContentIntoWebView:webView];
+ }else{
+ // Prevent licence text font size from growing on rotate.
+ [webView
stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('body')[0].style['-webkit-text-size-adjust']
= 'none';"];
}
-
[self updateNavigationBar];
}
--
To view, visit https://gerrit.wikimedia.org/r/190129
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib06dab41867e5399789094a2c762250936a7f102
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Mhurd <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits