search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

React Scheduler > How to make shadow of event while moving respects the event height, despite margin top of resource

Asked by Andy
21 days ago.

I set a `marginTop` value for the resource row, which pushes down the event bars like so.

What is the correct approach to make the shadow fits the shape of the event (ie: same as resizing shadow), instead of the resource row’s height? Noting the events can have varying heights.

I tried this in `onEventMoving` but it doesn’t seem to work.

 args.html = `
      <div style="
        height:${eventHeight}px;
        ${(args.e.text())}
      </div>
    `;

Thank you.

Answer posted by Dan Letecky [DayPilot]
17 days ago.

Hi Andy,

In the latest sandbox build (2025.4.6701), it is now possible to set a custom shadow height in onEventMoving using args.height (in pixels).

Comment posted by Andy
17 days ago.

Thank you, Dan. This works perfectly!

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):