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

[editor] Remove drag boundary for static positioned elements

This is causing a bug, where elements can not be properly dragged to the 
top or left. I don't know why that happens. It may be a cause of to many 
nested divs with positioning statements.
parent b8612733
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ import { CanvasElementOverlay } from './canvas-element-overlay'; ...@@ -7,7 +7,6 @@ import { CanvasElementOverlay } from './canvas-element-overlay';
template: ` template: `
<div class="draggable-element" [class.draggable-element-selected]="selected" <div class="draggable-element" [class.draggable-element-selected]="selected"
cdkDrag [cdkDragData]="{dragType: 'move', element: element}" cdkDrag [cdkDragData]="{dragType: 'move', element: element}"
cdkDragBoundary=".canvasFrame"
(click)="selectElement($event.shiftKey)" (cdkDragStarted)="selectElement()" (click)="selectElement($event.shiftKey)" (cdkDragStarted)="selectElement()"
(dblclick)="openEditDialog()"> (dblclick)="openEditDialog()">
<!-- Needs extra div because styling can interfere with drag and drop--> <!-- Needs extra div because styling can interfere with drag and drop-->
......
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