Merge "Don't use deprecated jquery.hidpi module"

This commit is contained in:
jenkins-bot 2018-10-09 16:23:09 +00:00 committed by Gerrit Code Review
commit 6ccf2a3568
3 changed files with 2 additions and 3 deletions

View file

@ -108,7 +108,6 @@
"mediawiki.storage", "mediawiki.storage",
"oojs", "oojs",
"jquery.fullscreen", "jquery.fullscreen",
"jquery.hidpi",
"jquery.throttle-debounce", "jquery.throttle-debounce",
"jquery.color", "jquery.color",
"jquery.tipsy", "jquery.tipsy",

View file

@ -61,7 +61,7 @@
viewportHeight: $( window ).height(), viewportHeight: $( window ).height(),
canvasWidth: canvasDimensions.width, canvasWidth: canvasDimensions.width,
canvasHeight: canvasDimensions.height, canvasHeight: canvasDimensions.height,
devicePixelRatio: $.devicePixelRatio(), devicePixelRatio: window.devicePixelRatio || 1,
imgWidth: imageWidths.cssWidth, imgWidth: imageWidths.cssWidth,
imageAspectRatio: imageWidths.cssWidth / imageWidths.cssHeight, imageAspectRatio: imageWidths.cssWidth / imageWidths.cssHeight,
thumbWidth: imageWidths.real, thumbWidth: imageWidths.real,

View file

@ -77,7 +77,7 @@
], ],
// screen pixel per CSS pixel // screen pixel per CSS pixel
devicePixelRatio: $.devicePixelRatio() devicePixelRatio: window.devicePixelRatio || 1
}; };
/** /**