From def9da2f0d823418e3899532a8007566f05a728f Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Thu, 12 Mar 2020 21:17:13 +0100 Subject: [PATCH] Use 16:9 instead of 1.78:1 to derive width of screen --- src/components/dom.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/dom.js b/src/components/dom.js index bdd7d5d95f..cc37e2fc5b 100644 --- a/src/components/dom.js +++ b/src/components/dom.js @@ -118,9 +118,7 @@ define([], function () { var height = window.innerHeight; if (height > width) { - /* If we're in portrait, compute the proper width for this height, - taking 16:9 as the most common ratio */ - width = height * 1.78; + width = height * (16.0 / 9.0); } var closest = standardWidths.sort(function (a, b) {