From 62efe0b28884db4bb9cc7e795a44c409ab265074 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 16 Aug 2016 00:34:45 +0200 Subject: [PATCH] Make map legend zoomable --- OsmAnd/assets/help/style.css | 1 + OsmAnd/assets/style.css | 1 + .../net/osmand/plus/dialogs/HelpArticleDialogFragment.java | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/OsmAnd/assets/help/style.css b/OsmAnd/assets/help/style.css index 2078880de3..6ade3b46dd 100644 --- a/OsmAnd/assets/help/style.css +++ b/OsmAnd/assets/help/style.css @@ -33,6 +33,7 @@ .imgcontainer{margin:20px 30px;} .legendcontainer{margin:0;} .legend{width:100%;} + .contributorsbanner {width:100%;} /*div {border-width: 1px; padding: 10px; border: groove; margin-left:auto;margin-right:auto; width:480pt} h3.help { text-align: center} diff --git a/OsmAnd/assets/style.css b/OsmAnd/assets/style.css index ad58effea1..dea92413e9 100644 --- a/OsmAnd/assets/style.css +++ b/OsmAnd/assets/style.css @@ -60,3 +60,4 @@ /***********help about****************************************************/ .about .surname{font-weight:bold;} .about h3{margin-top:30px;} +.contributorsbanner {width:100%;} \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java index 9a442d5a51..3af6bf54c0 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/HelpArticleDialogFragment.java @@ -31,7 +31,7 @@ public class HelpArticleDialogFragment extends DialogFragment { private static final String URL = "url"; private WebView webView; private static String HEADER_INNER= "\n"+ - "\n" + + "\n" + "\n" + "\n" + "\n" + @@ -71,6 +71,10 @@ public class HelpArticleDialogFragment extends DialogFragment { String url = getArguments().getString(URL); webView = (WebView) view.findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); +// webView.getSettings().setBuiltInZoomControls(true); +// webView.getSettings().setDisplayZoomControls(true); + webView.getSettings().setSupportZoom(true); + if (assetName != null) { String fileContents = getAssetAsString(assetName, getActivity());