Uploaded image for project: 'ZK Calendar'
  1. ZK Calendar
  2. ZKCAL-114

a calendar item starts at 00:00 and end at 00:00 causes a js error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.1.2
    • 3.1.1
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. run zkcal-114.zul
      2. wait for a moment, check developer tool > console Tab

      Current Result

      a js error:
      Uncaught RangeError: Invalid array length
      at Array.push (<anonymous>)
      at init.drawItem_ (calendar.wpd:245:9)
      at init._resetDayPosition (calendar.wpd:3043:12)
      at init._rePositionDay (calendar.wpd:3078:8)
      at init.bind_ (calendar.wpd:2903:8)
      at init.bindChildren_ (zk.wpd:24955:67)
      at init.bind_ (zk.wpd:24915:12)
      at init.bind (zk.wpd:24832:14)
      at init.replaceChildHTML_ (zk.wpd:24539:13)
      at init.replaceHTML (zk.wpd:24364:16)

      Expected Result

      no error

      Debug Information

      • the item's lowerBoundEd is wrong

        1. Cal114Composer.java
          1 kB
        2. zkcal-114.js
          0.5 kB
        3. zkcal-114.zul
          0.1 kB

            hawk hawk
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: