瀏覽代碼

Always center the image

master
Fen Dweller 5 年之前
父節點
當前提交
b9d99d2cbe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      xray.js

+ 1
- 1
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;
});


Loading…
取消
儲存