mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Added original zoom to fit screen option
This commit is contained in:
@@ -1516,7 +1516,7 @@ public class HtmlHelper {
|
||||
}
|
||||
}
|
||||
|
||||
static void setViewport(Document document) {
|
||||
static void setViewport(Document document, boolean overview) {
|
||||
// https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
|
||||
Elements meta = document.head().select("meta").select("[name=viewport]");
|
||||
if (meta.size() == 1) {
|
||||
@@ -1527,9 +1527,10 @@ public class HtmlHelper {
|
||||
meta.attr("content", content);
|
||||
} else {
|
||||
meta.remove();
|
||||
document.head().prependElement("meta")
|
||||
.attr("name", "viewport")
|
||||
.attr("content", "width=device-width, initial-scale=1.0");
|
||||
if (!overview)
|
||||
document.head().prependElement("meta")
|
||||
.attr("name", "viewport")
|
||||
.attr("content", "width=device-width, initial-scale=1.0");
|
||||
}
|
||||
|
||||
Log.d(document.head().html());
|
||||
|
||||
Reference in New Issue
Block a user