Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Calendar random wrong visualization

    I have created a tool to generate random data, and I have noticed that sometimes the events are wrong rendered.

    I have created a simple test case.

    1) Go to http://www.smartclient.com/#databoundCalendar
    2) In the tab "eventData" paste the following code

    Code:
    var eventData = [
        {
          "eventId": "1",
          "name": "Generated Event",
          "description": "My Event 1",
          "startDate": new Date(2012, 11, 29, 5, 0, 0),
          "endDate": new Date(2012, 11, 29, 24, 0, 0)
        }, {
          "eventId": "2",
          "name": "Generated Event",
          "description": "My Event 2",
          "startDate": new Date(2013, 0, 8, 2, 0, 0),
          "endDate": new Date(2013, 0, 8, 17, 0, 0)
        }, {
          "eventId": "3",
          "name": "Generated Event",
          "description": "My Event 3",
          "startDate": new Date(2013, 0, 14, 12, 0, 0),
          "endDate": new Date(2013, 0, 14, 24, 0, 0)
        }, {
          "eventId": "4",
          "name": "Generated Event",
          "description": "My Event 4",
          "startDate": new Date(2013, 0, 15, 2, 0, 0),
          "endDate": new Date(2013, 0, 15, 18, 0, 0)
        }, {
          "eventId": "5",
          "name": "Generated Event",
          "description": "My Event 5",
          "startDate": new Date(2013, 0, 15, 04, 0, 0),
          "endDate": new Date(2013, 0, 15, 16, 0, 0)
        }, {
          "eventId": "6",
          "name": "Generated Event",
          "description": "My Event 6",
          "startDate": new Date(2013, 0, 15, 06, 0, 0),
          "endDate": new Date(2013, 0, 15, 24, 0, 0)
        }
    ];
    3) Click "Try it" button
    4) Click the date chooser icon and choose 15th January (2013)
    5) Notice that for this date, in both week and day view, the three events are shown, but also there is an empty space in the left

    This only happens with specific eventData sets. For example, with the same previous code, just remove the whole "Event 2" and try the test-case again. Now the empty space is not shown and the three events take the whole day width.

    I have detected something similar but with an strange events stack in the week view, but before prepare a "simple" eventData set to reproduce it, I prefer wait if this issue fix fixes also this one.

    Regards.
    Last edited by martintaal; 6 Jan 2013, 18:13.

    #2
    Hi Martin
    Acknowledged - we see the behavior you describe and are taking a look. We'll let you know when we have more information for you

    Regards
    Isomorphic Software

    Comment


      #3
      This has been addressed in 8.3p and 9.0d - please retest with a nightly build of January 12 or later.

      In the meantime, you can fix the issue locally by just not providing end dates of 24:00:00. Instead, pass 23:59:59 and that will address it for now.

      Comment

      Working...
      X