Our pure JavaScript Scheduler component


Post by sufianh »

Hello I'm using (6.0.0) BETA 1 version , after updating to this version I'm facing a problem with highlightTimeSpan(); while I'm using the scheduler with the 'RTL' direction when trying to change the direction to default it work as expected,

Attachments
ltrtrl.png
ltrtrl.png (99.08 KiB) Viewed 146 times
Last edited by sufianh on Mon Jun 24, 2024 10:17 am, edited 2 times in total.

Post by tasnim »

Hi,

What issues are you facing with highlightTimeSpan? Could you please explain a bit further about the issue and how can we reproduce it?


Post by sufianh »

look at the attached image the first one is when rtl and the second when its ltr , when the scheduler is rtl the the highlightTimeSpan() wrong timespans


Post by mats »

Seems to work fine here: https://bryntum.com/products/gantt-next/examples/highlight-time-spans/?rtl

Can you please share a small test case?


Post by sufianh »

in this case its horizontal moves in my case its vertical and im using it as you explained at the docs


Post by mats »

Can you please show how to reproduce the issue in the link I shared?


Post by sufianh »

It's when you constraint the drag to time slot and not to resource, so the dragging process will happen vertically, which will allow the highlight to appear vertical as well.

    features : {
        timeSpanHighlight : true,
                        eventDrag: {
                    constrainDragToTimeSlot: true,
                     constrainDragToResource: false,}
    }
    
this.highlightHours(eventRecords[0]); highlightHours({ startDate, endDate }) { this.scheduler.highlightTimeSpan({ surround: true, name: 'זמנים לא בהתאם', // resourceRecord: startDate: startDate, endDate: endDate }); } ,

but constrainDragToTimeSlot does not seem to work in the online example as maybe there is some other setting that is preventing it from happening. But I have provided a screenshot anyways in the first post from my project and the issue looks clear. When the scheduler is rtl, the highlighting is deviated and does not display in the correct timeslot that I am dragging the event in.


Post by tasnim »

Hi,

Could you please share a video of reproduction? Are you able to reproduce it here https://bryntum.com/products/schedulerpro-next/examples/highlight-time-spans/?rtl? If you can please share the steps to replicate the issue.

Best of luck :),
Tasnim


Post by sufianh »

hello , please see the attached video that showcases the bug

Attachments
AMTS - 24 June 2024.mp4
(454.12 KiB) Downloaded 4 times

Post by saki »

Yes, it is a bug. Thank you for reporting it. Here is the ticket: https://github.com/bryntum/support/issues/9427


Post Reply