mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-02 05:04:43 +08:00
Further scale correction fixes
This commit is contained in:
@@ -49,9 +49,10 @@ export default 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 */
|
||||
|
||||
Reference in New Issue
Block a user