Skip to content

Commit 0c3bd0c

Browse files
authored
fix: opened menu cut off (openscd#1125)
* fix: opened menu cut off * fix: update anchor with update method
1 parent 88d3743 commit 0c3bd0c

10 files changed

+10
-10
lines changed

src/editors/substation/bay-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class BayEditor extends LitElement {
112112
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
113113
}
114114

115-
firstUpdated(): void {
115+
updated(): void {
116116
this.addMenu.anchor = <HTMLElement>this.addButton;
117117
}
118118

src/editors/substation/conducting-equipment-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class ConductingEquipmentEditor extends LitElement {
9292
);
9393
}
9494

95-
firstUpdated(): void {
95+
updated(): void {
9696
if (this.addMenu && this.addButton)
9797
this.addMenu.anchor = <HTMLElement>this.addButton;
9898
}

src/editors/substation/eq-function-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class EqFunctionEditor extends LitElement {
8787
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
8888
}
8989

90-
firstUpdated(): void {
90+
updated(): void {
9191
this.addMenu.anchor = <HTMLElement>this.addButton;
9292
}
9393

src/editors/substation/eq-sub-function-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class EqSubFunctionEditor extends LitElement {
8484
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
8585
}
8686

87-
firstUpdated(): void {
87+
updated(): void {
8888
this.addMenu.anchor = <HTMLElement>this.addButton;
8989
}
9090

src/editors/substation/function-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class FunctionEditor extends LitElement {
8383
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
8484
}
8585

86-
firstUpdated(): void {
86+
updated(): void {
8787
this.addMenu.anchor = <HTMLElement>this.addButton;
8888
}
8989

src/editors/substation/general-equipment-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class GeneralEquipmentEditor extends LitElement {
7575
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
7676
}
7777

78-
firstUpdated(): void {
78+
updated(): void {
7979
if (this.addMenu && this.addButton)
8080
this.addMenu.anchor = <HTMLElement>this.addButton;
8181
}

src/editors/substation/powertransformer-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class PowerTransformerEditor extends LitElement {
9595
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
9696
}
9797

98-
firstUpdated(): void {
98+
updated(): void {
9999
if (this.addMenu && this.addButton)
100100
this.addMenu.anchor = <HTMLElement>this.addButton;
101101
}

src/editors/substation/sub-function-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class SubFunctionEditor extends LitElement {
8787
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
8888
}
8989

90-
firstUpdated(): void {
90+
updated(): void {
9191
this.addMenu.anchor = <HTMLElement>this.addButton;
9292
}
9393

src/editors/substation/substation-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class SubstationEditor extends LitElement {
113113
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
114114
}
115115

116-
firstUpdated(): void {
116+
updated(): void {
117117
this.addMenu.anchor = <HTMLElement>this.addButton;
118118
}
119119

src/editors/substation/voltage-level-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class VoltageLevelEditor extends LitElement {
123123
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
124124
}
125125

126-
firstUpdated(): void {
126+
updated(): void {
127127
this.addMenu.anchor = <HTMLElement>this.addButton;
128128
}
129129

0 commit comments

Comments
 (0)