Our pure JavaScript Scheduler component

Post by rodel.ocfemia »

I can't find the resizeToFitContent.
Here are some screenshots I gathered. When i is undefined, the row is also undefined resulting to undefined renderCell property of row.

renderRow - with error.PNG
renderRow - with error.PNG (142.82 KiB) Viewed 125 times
renderRow - no error.PNG
renderRow - no error.PNG (119 KiB) Viewed 125 times

Post by Animal »

Looks like an old version.

But still, how can i be undefined?

Scroll up a little, it should do for (i = start; i < end; i++) {

So then somehow start is undefined? The only way that could happen is if start = Math.max(Math.min(rowManager.topIndex + Math.round(rowManager.rowCount / 2) - 500, count - 1000), 0); set it to undefined (scroll up a little to see that)

It seems there are no rows. Gleaning a little info from your screenshot, it looks like there are no rows in the Scheduler.

And yet, the code is executing. It only runs if store.count > 0, so the store has records, but there are no rows. How? Set the debug breakpoint at the top of the method. Step it.

Post by rodel.ocfemia »

Somehow I can't put breakpoint at line 1880 and when I mouse over row, it does not popup any properties.
Hopefully you can reproduce the issue in your machine.

renderRow.PNG (133.92 KiB) Viewed 119 times

Post by Animal »

So. What is row there?

Nobody can reproduce this here. No rows but the store has records. I'm doing remote control debugging via forum messages!

Post by Animal »

And if there are no rows, but there are records, by what route did we get here? Who is calling this too early?

Post by rodel.ocfemia »

I don't have time to debug your code. I also have deliverables to do. Hopefully you can fix your code.

Post by Animal »

So you dblclick on a column header boundary to do an auto size?

Post by rodel.ocfemia »

The error is displayed just after the page is loaded. I did not click any column or header.

Post by mats »

Which Bryntum version are you using here? Does it reproduce in latest?

Post by Animal »

There's obviously a lot more going on there than we have info about.

Just adding a column defined like this works fine in a simple example:

            type           : 'resourceInfo',
            text           : 'Name',
            minWidth: 200,
            autoWidth: true,
            showEventCount : false,
            showRole       : true
Screenshot 2024-02-16 at 13.59.50.png
Screenshot 2024-02-16 at 13.59.50.png (290.62 KiB) Viewed 104 times

Post Reply