Minor refactoring and fixes

This commit is contained in:
barsdeveloper
2022-12-26 14:10:25 +01:00
parent 3df33bfe05
commit a1ae7799a1
30 changed files with 651 additions and 536 deletions

View File

@@ -93,7 +93,6 @@ export default class IElement extends LitElement {
setup() {
this.template.setup()
this.template.inputSetup()
this.isSetup = true
}
@@ -122,6 +121,7 @@ export default class IElement extends LitElement {
firstUpdated(changedProperties) {
super.firstUpdated(changedProperties)
this.template.firstUpdated(changedProperties)
this.template.inputSetup()
}
/** @param {PropertyValues} changedProperties */

View File

@@ -43,6 +43,12 @@ export default class WindowElement extends IDraggableElement {
super.initialize(entity, template)
}
setup() {
super.setup()
this.locationX = this.blueprint.mousePosition[0]
this.locationY = this.blueprint.mousePosition[1]
}
cleanup() {
super.cleanup()
this.acknowledgeClose()