This pronlrm is something you can easily see by going in to your own showcase, the "timeline resolution" example.
I want to be able to show 24hrs, with 15 minutes granularity. The user should be able to drag the events to, for example 06.45 - 12.15.
code to set up the granularity:
There are two issues:
1. In your showcase you can only select whole hours in the timeline. You can open and edit, but the timeline only display full hours, even if you hover and see the actual time.
2. The point above seems like a 6.1 thing, because it *kind* of works for me in 6.0 with the above code, only that the minimum length of the event is one hour. I can drag to for example 12.15 - 14.45, but if i drag to 12, it moves so that the event is one hour.
I would argue that the expectancy is for the calendar to work as described in the API, and how you'd expect as an end user. That is, if you define the granularity as in my code above, you should be able to drag and drop with quarter granularity, and the timeline should display the correct values.
I want to be able to show 24hrs, with 15 minutes granularity. The user should be able to drag the events to, for example 06.45 - 12.15.
code to set up the granularity:
Code:
HeaderLevel hour = new HeaderLevel(TimeUnit.HOUR); hour.setHeaderWidth(50); HeaderLevel minute = new HeaderLevel(TimeUnit.MINUTE); minute.setHeaderWidth(50); HeaderLevel[] headerLevels = new HeaderLevel[]{hour, minute}; setResolution(headerLevels, TimeUnit.HOUR, 24, 15);
1. In your showcase you can only select whole hours in the timeline. You can open and edit, but the timeline only display full hours, even if you hover and see the actual time.
2. The point above seems like a 6.1 thing, because it *kind* of works for me in 6.0 with the above code, only that the minimum length of the event is one hour. I can drag to for example 12.15 - 14.45, but if i drag to 12, it moves so that the event is one hour.
I would argue that the expectancy is for the calendar to work as described in the API, and how you'd expect as an end user. That is, if you define the granularity as in my code above, you should be able to drag and drop with quarter granularity, and the timeline should display the correct values.
Comment