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
1 month 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]
1 month 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
1 month ago.

Thank you, Dan. This works perfectly!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.