From d5274e4e6d86769ce436abb45247c1274cd4ad5f Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Wed, 11 Jan 2023 13:32:32 +0100 Subject: [PATCH] Use cdk 'matchSize' also for drag images - This prevents the cursor to be set to the upper left corner of the preview image --- .../common/components/input-elements/drop-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/components/input-elements/drop-list.component.ts b/projects/common/components/input-elements/drop-list.component.ts index b159cf3f9..633ed2719 100644 --- a/projects/common/components/input-elements/drop-list.component.ts +++ b/projects/common/components/input-elements/drop-list.component.ts @@ -82,7 +82,7 @@ import { FormElementComponent } from '../../directives/form-element-component.di (cdkDragStarted)="dragStart($event)" (cdkDragEnded)="dragEnd()"> <img [src]="dropListValueElement.imgSrc | safeResourceUrl" alt="Image Placeholder"> - <ng-template cdkDragPreview> + <ng-template cdkDragPreview matchSize> <img *ngIf="dropListValueElement.imgSrc" [src]="dropListValueElement.imgSrc | safeResourceUrl" alt="Image Placeholder"> </ng-template> -- GitLab