Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1544

Javascript error breaks Scheduler month view with multiple overlapping events

    Details

      Description

      The Javascript error "Cannot read property 'setStyles' of null" in aui-scheduler-view-table.js:1095 is thrown in the month view of a Scheduler when there are multiple events which span more than 2 weeks.

      A way to reproduce the error is to change demos/scheduler/index.html, using this array of items:

      var items = [
          {
              content: 'Long 1',
              startDate: new Date(2014, 6, 5),
              endDate: new Date(2014, 6, 27),
              allDay: true
          },
          {
              content: 'Long 2',
              startDate: new Date(2014, 6, 5),
              endDate: new Date(2014, 6, 27),
              allDay: true
          },
          {
              content: 'Long 3',
              startDate: new Date(2014, 6, 5),
              endDate: new Date(2014, 6, 27),
              allDay: true
          },
          {
              content: 'Short 1',
              startDate: new Date(2014, 6, 5),
              endDate: new Date(2014, 6, 16),
              allDay: true
          }
      ];
      

      This image shows the broken month view:

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 45 weeks, 3 days ago

                  Packages

                  Version Package
                  2.0.x
                  master
                  master-deprecated
                  3.0.x
                  2.0.0.59-deprecated
                  3.1.x