소스 검색

Fix old behavior when auto-fitting on resize

master
Fen Dweller 5 년 전
부모
커밋
2d198f27b8
1개의 변경된 파일1개의 추가작업 그리고 11개의 파일을 삭제
  1. +1
    -11
      macrovision.js

+ 1
- 11
macrovision.js 파일 보기

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


if (config.autoFitSize) { 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]);
} }


}); });


불러오는 중...
취소
저장