diff --git a/src/app/components/template/template.component.scss b/src/app/components/template/template.component.scss index 575bc404..78753b14 100644 --- a/src/app/components/template/template.component.scss +++ b/src/app/components/template/template.component.scss @@ -1,6 +1,6 @@ ::ng-deep .mat-menu-panel { max-width: 400px; - max-height: 400px; + max-height: 500px; } .menu { diff --git a/src/app/components/template/template.component.ts b/src/app/components/template/template.component.ts index c5426586..cd8d29dd 100644 --- a/src/app/components/template/template.component.ts +++ b/src/app/components/template/template.component.ts @@ -77,8 +77,8 @@ export class TemplateComponent implements OnInit { template: template, server: 'local', numberOfNodes: 1, - x: this.startX + ev.x - this.project.scene_width/2 - (width/2) + window.scrollX , - y: this.startY + ev.y - this.project.scene_height/2 + window.scrollY + x: (this.startX + ev.x - this.project.scene_width/2 - (width/2)) * scale + window.scrollX , + y: (this.startY + ev.y - this.project.scene_height/2) * scale + window.scrollY }; this.onNodeCreation.emit(nodeAddedEvent); });