Improve image size handling
This commit is contained in:
parent
0397283599
commit
8646b66f6c
11 changed files with 24 additions and 26 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue