Skip to content
Snippets Groups Projects
Commit b75f9a33 authored by rhenck's avatar rhenck
Browse files

[editor] Remove faulty cursor code

Was an earlier try to get the correct cursor on canvas elements. This 
has been solved another way.
parent b9959abe
No related branches found
No related tags found
No related merge requests found
...@@ -58,13 +58,13 @@ export class CanvasDragOverlayComponent implements OnInit { ...@@ -58,13 +58,13 @@ export class CanvasDragOverlayComponent implements OnInit {
private oldX: number = 0; private oldX: number = 0;
private oldY: number = 0; private oldY: number = 0;
constructor(private unitService: UnitService, private componentFactoryResolver: ComponentFactoryResolver) { } constructor(private unitService: UnitService,
private componentFactoryResolver: ComponentFactoryResolver) { }
ngOnInit(): void { ngOnInit(): void {
const componentFactory = ComponentUtils.getComponentFactory(this.element.type, this.componentFactoryResolver); const componentFactory = ComponentUtils.getComponentFactory(this.element.type, this.componentFactoryResolver);
const childComponent = this.elementContainer.createComponent(componentFactory); const childComponent = this.elementContainer.createComponent(componentFactory);
childComponent.instance.elementModel = this.element; childComponent.instance.elementModel = this.element;
childComponent.location.nativeElement.firstChild.style.cursor = 'inherit';
} }
setSelected(newValue: boolean): void { setSelected(newValue: boolean): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment