Make elements default constructible, testing wip

This commit is contained in:
barsdeveloper
2022-12-24 15:29:12 +01:00
parent 7ed36f21e5
commit c3ab6478b0
53 changed files with 992 additions and 712 deletions

View File

@@ -23,8 +23,8 @@ export default class IDraggableControlTemplate extends IDraggableTemplate {
movementSpace
movementSpaceSize = [0, 0]
connectedCallback() {
super.connectedCallback()
setup() {
super.setup()
this.movementSpace = this.element.parentElement
const bounding = this.movementSpace.getBoundingClientRect()
this.movementSpaceSize = [bounding.width, bounding.height]