Improve image size handling

This commit is contained in:
MrTimscampi 2020-03-11 21:31:04 +01:00
parent 0397283599
commit 8646b66f6c
11 changed files with 24 additions and 26 deletions

View file

@ -114,8 +114,8 @@ define([], function () {
var standardWidths = [480, 720, 1280, 1440, 1920, 2560, 3840, 5120, 7680];
function getScreenWidth() {
var width = window.innerWidth * window.devicePixelRatio;
var height = window.innerHeight * window.devicePixelRatio;
var width = window.innerWidth;
var height = window.innerHeight;
if (height > width) {
/* If we're in portrait, compute the proper width for this height,