Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: opened menu cut off #1125

Merged
merged 3 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/editors/substation/bay-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class BayEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/conducting-equipment-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class ConductingEquipmentEditor extends LitElement {
);
}

firstUpdated(): void {
updated(): void {
if (this.addMenu && this.addButton)
this.addMenu.anchor = <HTMLElement>this.addButton;
}
Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/eq-function-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class EqFunctionEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/eq-sub-function-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class EqSubFunctionEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/function-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class FunctionEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/general-equipment-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class GeneralEquipmentEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
if (this.addMenu && this.addButton)
this.addMenu.anchor = <HTMLElement>this.addButton;
}
Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/powertransformer-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class PowerTransformerEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
if (this.addMenu && this.addButton)
this.addMenu.anchor = <HTMLElement>this.addButton;
}
Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/sub-function-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class SubFunctionEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/substation-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class SubstationEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editors/substation/voltage-level-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class VoltageLevelEditor extends LitElement {
if (wizard) this.dispatchEvent(newWizardEvent(wizard));
}

firstUpdated(): void {
updated(): void {
this.addMenu.anchor = <HTMLElement>this.addButton;
}

Expand Down