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

[editor] Fix faulty drag and drop behaviour of canvas elements

The Material drag and drop stuff does not play well with the 
implementation of elements being styled dynamically via CSS. The extra 
div element pulls them apart avaoiding problems.
parent e0a0163f
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,11 @@ import * as ComponentUtils from '../../../../../../../common/component-utils';
@Component({
selector: 'app-canvas-drag-overlay',
template: `
<div cdkDrag [cdkDragData]="this.element" (click)="click($event)"
[ngStyle]="style">
<ng-template #elementContainer></ng-template>
<!-- Needs extra div because styling can interfere with drag and drop-->
<div cdkDrag [cdkDragData]="this.element" (click)="click($event)">
<div [ngStyle]="style">
<ng-template #elementContainer></ng-template>
</div>
</div>
`,
styles: [
......
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