Announcement

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

    Calendar: js error when event ends at the end of today

    SmartClient Version: SNAPSHOT_v11.1d_2017-01-25/Enterprise Development Only (built 2017-01-25)

    Chrome, Safari on OSX Sierra

    Hello, please try the databoundCalendar sample.

    In the week view, drag an event so it is on today, and it ends ad the end of the day (so its canvas reaches the bottom of the calendar's grid).
    Then switch to day view, and you'll see a javascript error in the developer console.
    This is the js log for chrome:
    Code:
    11:32:20.679:INFO:Log:initialized
    11:32:21.652:INFO:Log:isc.Page is loaded
    11:32:41.767:MUP9[E0]:WARN:Log:TypeError: Cannot read property 'getTime' of null
    Stack from error.stack:
        DaySchedule.getDateTopOffset(<no args: exited>) on [DaySchedule ID:eventCalendar_dayView] @ ISC_Calendar.js:245:277
        CalendarView.getSnapData(<no args: exited>) on [DaySchedule ID:eventCalendar_dayView] @ ISC_Calendar.js:154:455
        CalendarView.tagDataForOverlap(<no args: exited>) on [DaySchedule ID:eventCalendar_dayView] @ ISC_Calendar.js:160:116
        CalendarView.refreshEvents(<no args: exited>) on [DaySchedule ID:eventCalendar_dayView] @ ISC_Calendar.js:219:28
        DaySchedule.draw(<no args: exited>) on [DaySchedule ID:eventCalendar_dayView] @ ISC_Calendar.js:253:268
        Layout.layoutChildren(<no args: exited>) on [PaneContainer ID:eventCalendar_mainView_paneContainer] @ ISC_Foundation.js:344:264
        Layout.reflowNow(<no args: exited>) on [PaneContainer ID:eventCalendar_mainView_paneContainer] @ ISC_Foundation.js:374:568
        [c]Layout.clearReflowQueue(<no args: exited>) on [Class Layout] @ ISC_Foundation.js:242:447
        <anonymous>(<no args: exited>) @ ISC_Foundation.js:242:82
        [c]EventHandler.runTeas(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2111:106
        EventHandler._clearThread(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2108:136
        [c]EventHandler.dispatch(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2113:6
        HTMLDocument.eval(<no args: exited>) @ [no file]:3:123
    and this is the js log for Safari:
    Code:
    11:34:33.276:TMR8:WARN:drawing:eventCalendar_dayView:draw() called on widget with current drawn state: complete, use redraw() instead.
        Canvas.readyToDraw()
        ListGrid.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef, undef, undef, undef, undef, undef, undef)
        Class.invokeSuper(_1=>[Class DaySchedule], _2=>"draw", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
        DaySchedule.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
        Layout.layoutChildren(_1=>"resized", _2=>0, _3=>11)
        Canvas.$t1(_1=>undef, _2=>undef)
        Canvas.moveBy(_1=>0, _2=>0, _3=>undef, _4=>true)
        Canvas.moveTo(_1=>0, _2=>25, _3=>undef, _4=>true)
        Canvas.setRect(_1=>0, _2=>25, _3=>1275, _4=>921, _5=>undef)
        TabSet.fixLayout()
        TabSet.layoutChildren(_1=>"resized", _2=>0, _3=>11, _4=>undef)
        ** recursed on Canvas.$t1
    
    11:34:46.402:TMR9:WARN:Log:TypeError: null is not an object (evaluating '_7.slotNum')
    Stack from error.stack:
    isc_CalendarView_adjustDimensionsForOverlap@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:142:467
    isc_CalendarView_sizeEventCanvas@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:140:129
    isc_CalendarView_refreshVisibleEvents@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:177:402
    http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:107:347
    isc_c_Class_fireCallback@http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:302:109
    isc_c_Timer__fireTimeout@http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:1737:178
    http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:1734:43
    11:34:48.256:TMR4:WARN:Log:TypeError: null is not an object (evaluating '_7.slotNum')
    Stack from error.stack:
    isc_CalendarView_adjustDimensionsForOverlap@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:142:467
    isc_CalendarView_sizeEventCanvas@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:140:129
    isc_CalendarView_refreshVisibleEvents@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:177:402
    http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:107:347
    isc_c_Class_fireCallback@http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:302:109
    isc_c_Timer__fireTimeout@http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:1737:178
    http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:1734:43
    11:34:48.587:TMR0:WARN:Log:TypeError: null is not an object (evaluating '_7.slotNum')
    Stack from error.stack:
    isc_CalendarView_adjustDimensionsForOverlap@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:142:467
    isc_CalendarView_sizeEventCanvas@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:140:129
    isc_CalendarView_refreshVisibleEvents@http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:177:402
    http://mbproedp02:8083/isomorphic/system/modules/ISC_Calendar.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:107:347
    isc_c_Class_fireCallback@http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:302:109
    isc_c_Timer__fireTimeout@http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:1737:178
    http://mbproedp02:8083/isomorphic/system/modules/ISC_Core.js?isc_version=SNAPSHOT_v11.1d_2017-01-25.js:1734:43

    #2
    If it's not clear from my explanation, here's a video https://www.youtube.com/watch?v=R6OVuGR9dFo

    Comment


      #3
      Hi Isomorphic,

      I can reproduce using Chromium 56.0.2924.76. Also, any event moved to "today" in week view is not visible in day-view for "today".

      Best regards
      Blama

      Comment


        #4
        This has been fixed for builds of 11.0/6.0+ dated January 31 and later.

        Comment


          #5
          SmartClient Version: SNAPSHOT_v11.1d_2017-02-20/Enterprise Development Only (built 2017-02-20)

          Hello, I can confirm it's fixed (also the problem reported by Blama seems fixed), thank you very much.

          Comment

          Working...
          X