Menu height extended

This commit is contained in:
piotrpekala7 2020-05-04 18:05:39 +02:00
parent fe51a1797d
commit 9b482837d8
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
::ng-deep .mat-menu-panel {
max-width: 400px;
max-height: 400px;
max-height: 500px;
}
.menu {

View File

@ -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);
});