Request new features or modifications


Post by ericch »

Hello,

timeSpanContains should have a flag to indicate whether the borders should be included ( <= or >=) or excluded ( > < ).

If I create an event with exactly the same timeframe as my availability it comes up as invalid (using the timeSpanContains function to check availability) , which is not really the case as the full availability is consumed by the single task.
Example: availabilty 9:30 to 18:30, event: 9:30 to 18:30 and timeSpanContains returns a false, so you have to substract a minute on each side for having a true returning.

Regards,
Eric

Post by mats »

Hmm, something is fishy in your code I believe.

Open https://bryntum.com/examples/gantt-lates ... endar.html

Run
Sch.util.Date.timeSpanContains(new Date(2010, 1, 1), new Date(2010, 1, 2), new Date(2010, 1, 1), new Date(2010, 1, 2))
Returns true for me.

Post by ericch »

My apologies, as you guessed something fishy in my code.
Regards,
Eric

Post Reply