Adjusts event clone styling for drag operation

Ensures dragged event clones maintain correct positioning
by setting `marginLeft` to `0px`. This fixes a potential
visual issue where the clone might not fill the full
column width during dragging.
This commit is contained in:
Janus Knudsen 2025-09-09 17:46:48 +02:00
parent 6402cd4565
commit 69f4a71062

View file

@ -222,6 +222,7 @@ export abstract class BaseEventRenderer implements EventRendererStrategy {
// Dragged event skal have fuld kolonne bredde // Dragged event skal have fuld kolonne bredde
clone.style.left = '2px'; clone.style.left = '2px';
clone.style.right = '2px'; clone.style.right = '2px';
clone.style.marginLeft = '0px';
clone.style.width = ''; clone.style.width = '';
clone.style.height = originalEvent.style.height || `${originalEvent.getBoundingClientRect().height}px`; clone.style.height = originalEvent.style.height || `${originalEvent.getBoundingClientRect().height}px`;