Further scale correction fixes

This commit is contained in:
barsdeveloper
2022-12-12 22:05:02 +01:00
parent 88a1becb58
commit 4bc87263f1
4 changed files with 9 additions and 9 deletions

6
dist/ueblueprint.js vendored
View File

@@ -3142,9 +3142,10 @@ class IDraggableElement extends IElement {
}
computeSizes() {
const scaleCorrection = 1 / this.blueprint.getScale();
const bounding = this.getBoundingClientRect();
this.sizeX = bounding.width;
this.sizeY = bounding.height;
this.sizeX = bounding.width * scaleCorrection;
this.sizeY = bounding.height * scaleCorrection;
}
/** @param {Map} changedProperties */
@@ -6251,7 +6252,6 @@ class Blueprint extends IElement {
waitingExpandUpdate = false
/** @param {NodeElement} node */
nodeBoundariesSupplier = node => {
this.nodesContainerElement.getBoundingClientRect();
return /** @type {BoundariesInfo} */ {
primaryInf: node.leftBoundary(),
primarySup: node.rightBoundary(),

File diff suppressed because one or more lines are too long