Przeglądaj źródła

Always center the image

master
Fen Dweller 5 lat temu
rodzic
commit
b9d99d2cbe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      xray.js

+ 1
- 1
xray.js Wyświetl plik

@@ -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;
});


Ładowanie…
Anuluj
Zapisz