Explorar el Código

Fix old behavior when auto-fitting on resize

master
Fen Dweller hace 5 años
padre
commit
2d198f27b8
Se han modificado 1 ficheros con 1 adiciones y 11 borrados
  1. +1
    -11
      macrovision.js

+ 1
- 11
macrovision.js Ver fichero

@@ -828,17 +828,7 @@ function configEntityOptions(entity, view) {
}

if (config.autoFitSize) {
const x = parseFloat(selected.dataset.x);

Object.keys(entities).forEach(id => {
const element = document.querySelector("#entity-" + id);
const newX = parseFloat(element.dataset.x) - x + 0.5;
element.dataset.x = newX;
});
const entity = entities[selected.dataset.key];
const height = math.multiply(entity.views[entity.view].height, 1.1);
setWorldHeight(config.height, height);
fitEntities([selected]);
}

});


Cargando…
Cancelar
Guardar