Explorar el Código

Always center the image

master
Fen Dweller hace 5 años
padre
commit
b9d99d2cbe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      xray.js

+ 1
- 1
xray.js Ver fichero

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


Cargando…
Cancelar
Guardar