Unplanned
Last Updated: 14 Mar 2024 09:00 by Barbara
Barbara
Created on: 14 Mar 2024 09:00
Category: Scheduler
Type: Bug Report
0
Drag hint has wrong height after changing the snap configuration in Scheduler

Bug report

If the snap option is set at runtime the drag hint of the events starts having wrong height.

Reproduction of the problem

  1. Open the Dojo - https://dojo.telerik.com/@NeliK/ilaziJEr
  2. Try to disable and enable the Switch at the top ( you may need to disable and enable multiple times)
  3. Drag the event

Current behavior

After changing the snap option at runtime as a result the drag hint height is correct when the snap is set to false, but it has wrong height when the snap is enabled.

Expected/desired behavior

The drag hint should have the same height as the dragged event.

Workaround

move: function(e){
				
          var dragHintEl = $('.k-event-drag-hint')
          var dataUid = $('.k-event-drag-hint').attr('data-uid')
          var event = $('.k-event[data-uid="'+ dataUid +'"]:not(.k-event-drag-hint)')         
          var height = $(event).height()
          $(dragHintEl).height(height)

        },

Dojo - https://dojo.telerik.com/@NeliK/aZArEdof

Environment

  • Kendo UI version: 2024.1.130
  • Browser: [all ]
0 comments