search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Year view Bug in Scheduler

Asked by Anonymous
23 days ago.

Ever since the new Year view feature, our zoom level which we had as follows is now not working.

zoomLevels: [
  {
    name: "Year",
    properties: {
      scale: "Month",
      cellWidth: 87,
      timeHeaders: [
        { groupBy: "Year" },
        { groupBy: "Quarter" },
        { groupBy: "Month", format: "MMMM" }
        // { groupBy: "Cell" },
        // { groupBy: "Day", format: "d" }
      ],
      startDate: args => args.date.firstDayOfYear(),
      days: args => args.date.daysInYear(),
    },
  },
]
Comment posted by Anonymous
23 days ago.

Please see attached image

Comment posted by Anonymous
20 days ago.

Sorry to bug you, but our sites pages with the Scheduler (and probably a lot of other people’s sites) is showing ridiculous schedulers as if the whole thing is broken after the introduction of the Years view feature.

An upgrade should not render the library completely unusable as this could have horrible effects on its users.

Please advise how this can be resolved.

Thanks

Comment posted by Dan Letecky [DayPilot]
20 days ago.

Sorry for the delay.

Could you please post a screenshot that shows the problem circled/highlighted or a screenshot that would show how you expect it to look (the previous appearance)?

Comment posted by Anonymous
18 days ago.

If you set the zoomparams as shown, you cannot fail to see theproblem. The whole thing is broken.
Have you tried using the settings we have shown above?

Comment posted by Anonymous
18 days ago.

It looks like your new Year feature is causing the problem and is not compatible with the previous version.

Comment posted by Dan Letecky [DayPilot]
18 days ago.

I don’t see any “not working” or “the whole thing is broken” with this zoomLevel. I can only help you if you exactly describe the problem and the steps required to reproduce the issue. Then I will be able to tell you if this is a bug or a problem in your code.

Comment posted by Anonymous
18 days ago.

Basically we want to achieve the following visual:
Year as first header
Quarters as second
Months as the third.

Beofre the upgrade with the new Year feature everyhting was fine. But after the upgrade, the headers are ok but the events are all broken.

Please see attached.

Comment posted by Anonymous
18 days ago.

Here is another image showing the events with circles highlight

Answer posted by Dan Letecky [DayPilot]
18 days ago.

Thanks.

In such a zoomed-out view, the event width can get very small if you turn off the event boxes feature. With event boxes enabled (that’s the default setting), the event width is aligned with the grid cells and the real duration is displayed by the duration bar.

Comment posted by Anonymous
17 days ago.

I will try and use an older version to show you.
How can I get the one prior to you introducing the year view feature.

Comment posted by Anonymous
17 days ago.

Also ote that the scheduler has become very large where infact there is only a single resouce. This is the Month view.

Comment posted by Anonymous
17 days ago.

It is trying to display a 12 month Vertically which is not the intention of our configuration!

Comment posted by Anonymous
17 days ago.

Month View

Comment posted by Dan Letecky [DayPilot]
17 days ago.

You see an increase in the row height because these events are evaluated as overlapping and are displayed on separate lines inside rows.

This is resolved on a pixel level. It is possible that events that don’t overlap in the month view will be treated as overlapping if you zoom out, because there is a certain minimum width enforced.

You can give it a try with version 2024.2.5922 which is the last one before the Scheduler-based year view was introduced. However, the event arrangement logic hasn’t changed.

See also the Event Placement Strategies tutorial to learn how to force overlapping events to be displayed in a single line.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):