From b9d99d2cbe4c959799198157083b0322e44898b8 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 18 Oct 2020 13:48:12 -0400 Subject: [PATCH] Always center the image --- xray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xray.js b/xray.js index 741d677..2b7fddb 100644 --- a/xray.js +++ b/xray.js @@ -526,7 +526,7 @@ function setup() { [baseCtx, baseCtxResized, overlayCtx, overlayCtxResized, shadowCtx].forEach(ctx => { ctx.canvas.width = width; ctx.canvas.height = height; - ctx.canvas.style.left = fitScreen ? (availableWidth - width) / 2 + "px" : 0; + ctx.canvas.style.left = (availableWidth - width) / 2 + "px"; ctx.canvas.style.top = fitScreen ? (availableHeight - height) / 2 + "px" : 0; });