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:
parent
6402cd4565
commit
69f4a71062
1 changed files with 1 additions and 0 deletions
|
|
@ -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`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue