Announcement

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

    calendar DayView Bug in Version 12.1

    Hello,

    production version : v12.0p_2020-01-08/Pro Deployment
    new version : v12.1p_2020-04-01/Pro Deployment
    Browser testet with : google chrome Version 80.0.3987.163

    Problem: Calendar in "dayView" does not show event when changing date 1 day back or forward.
    How to test:
    working example: https://www.virtic24.com/app/calDemo.p
    bug example:https://www.virtic24.com/app/calDemo121.p

    The source-code is identical with an exception in using different smartclient versions (12.0 vs. 12.1)

    Kind regards

    Paul

    #2
    This looks like one of several issues that were fixed and hit builds, coincidentally, the day after the version you are testing - April 2.

    So, you can see things working in the online 12.1 samples here.

    Please retest with the latest 12.1 build from smartclient.com/builds.

    Comment


      #3
      Hello, I downloaded version "v12.1p_2020-04-16/Pro Development Only"
      and retestet.
      I do not see an improvement with one change:after changing to das view, one event is shown but it 'disappers ' after clicking forward and backward and after return to weekview they also have gone.
      Do you need a version on the production environment as well?
      kind regrads Paul

      Comment


        #4
        Please post your sample as test-code we can run and we'll take a look.

        Comment


          #5
          Hello, meanwhile we replaced the 12,1 version wuth release
          "v12.1p_2020-04-19/Pro Deployment"
          The bug still exists as my two different demo codes show.
          working example: https://www.virtic24.com/app/calDemo.p
          bug example:https://www.virtic24.com/app/calDemo121.p
          Additional notice: When the user resizes the browser window the event is shown.

          Comment


            #6
            Again, please post standalone test-code we can run offline to see the problem (including data, you can use a clientOnly DS if need be) and we'll take a look. The online samples show no issues like this, so we need your code.

            You might want to check the console for warnings before you do that - we saw logs about loading the German locale and the Tahoe skin when we hit your link, which could cause issues.

            For example, if the locale file is not being loaded successfully, there could be mismatched firstDayOfWeek behavior - the global firstDayOfWeek used by global date functions will still be the default (zero), while Calendar code will use the firstDayOfWeek you've set, 1.

            Comment


              #7
              Hello,
              I did some more tests.

              Demo: copy the following into the code editor of an arbitray page of your hands on demo[https://www.smartclient.com/smartcli...oundCalendarFS]

              then click "try it".
              you will be in week view.
              change to dayview.
              click back to days
              click forward to days
              select "weekview"

              you should see some missing events.
              resize the browser.
              missing events should appear.


              // **************** Start Code
              var _today = new Date();
              var _start = _today.getDate() - _today.getDay();
              var _month = _today.getMonth();
              var _year = _today.getFullYear();

              var eventdata = [ {
              eventId: 0, description: "Description: 0",
              name: "Name: 0",
              startDate: new Date(_year, _month, _start -2, 9) ,
              endDate: new Date(_year, _month, _start -2, 15)
              }

              , {
              "eventId": "1", "description": "Description: 1", "name": "Name: 1", startDate:new Date(_year, _month, _start -1, 9), endDate: new Date(_year, _month, _start -1, 16)
              }
              , {
              "eventId": "2", "description": "Description: 2", "name": "Name: 2", startDate:new Date(_year, _month, _start + 0, 9), endDate: new Date(_year, _month, _start + 0, 17)
              }
              , {
              "eventId": "3", "description": "Description: 3", "name": "Name: 3", startDate:new Date(_year, _month, _start + 1, 9), endDate: new Date(_year, _month, _start + 1, 18)
              }
              , {
              "eventId": "4", "description": "Description: 4", "name": "Name: 4", startDate:new Date(_year, _month, _start + 2, 9), endDate: new Date(_year, _month, _start + 2, 19)
              }
              , {
              "eventId": "5", "description": "Description: 5", "name": "Name: 5", startDate:new Date(_year, _month, _start + 3, 9), endDate: new Date(_year, _month, _start + 3, 20)
              }
              , {
              "eventId": "6", "description": "Description: 6", "name": "Name: 6", startDate:new Date(_year, _month, _start + 4, 9), endDate: new Date(_year, _month, _start + 4, 21)
              }
              , {
              "eventId": "7", "description": "Description: 7", "name": "Name: 7", startDate:new Date(_year, _month, _start + 5, 9), endDate: new Date(_year, _month, _start + 5, 22)
              }
              , {
              "eventId": "8", "description": "Description: 8", "name": "Name: 8", startDate:new Date(_year, _month, _start + 6, 9), endDate: new Date(_year, _month, _start + 6, 23)
              }
              , {
              "eventId": "9", "description": "Description: 9", "name": "Name: 9", startDate:new Date(_year, _month, _start + 7, 9), endDate: new Date(_year, _month, _start + 7, 14)
              }
              , {
              "eventId": "10", "description": "Description: 10", "name": "Name: 10", startDate:new Date(_year, _month, _start + 8, 9), endDate: new Date(_year, _month, _start + 8, 13)
              }
              ]


              isc.Calendar.create({
              ID: "virticdispoCalendar",
              autoDraw: true,
              showDatePickerButton: false,
              showAddEventButton: false,
              autoFetchData : false,
              canCreateEvents: false,
              canEditEvents: false,
              showQuickEventDialog: true,
              dateFormatter: "toEuropeanShortDatetime",
              firstDayOfWeek : 1


              });

              var jetzt = new Date();
              var endeMonat = DateUtil.getEndOf (jetzt,"m");
              var anfangMonat = DateUtil.getStartOf (jetzt,"m");
              virticdispoCalendar.setData(eventdata);


              Comment


                #8
                We'll look into it today and will update here shortly.

                Comment


                  #9
                  Hello,
                  even in your examples I see a bug.:
                  https://www.smartclient.com/smartcli...simpleCalendar

                  change to dayview
                  click back and forward twice:
                  change back to weekview

                  IN MY TESTS with chrome and firefox I can see that at least ONE event is missing.
                  It is shown as soon as one resizes the Browser window:
                  Kind regards

                  Paul

                  Comment


                    #10
                    The problem (for your latter-most issue as well) was that an eventCanvas happened to be reused by the same event it had the last time it was drawn, meaning its times (and so its draw-rect) didn't change - which resulted in it being correctly placed, but not being show()n.

                    Please retest with a build dated April 21 or later.

                    Comment


                      #11
                      Hi Isomorphic,

                      With the firstDayOfWeek attribute. When set it switched to that day in month view however not for week view at it did in previous versions. Is this a bug or am I missing something?

                      I test this behavior in the simpler.calendar showcase.

                      Thanks,
                      Col.

                      isc.Calendar.create({
                      ID: "eventCalendar",
                      data: eventData
                      firstDayOfWeek:1,
                      });
                      Last edited by cennever; 21 Apr 2020, 20:10.

                      Comment


                        #12
                        We've fixed this issue with firstDayOfWeek in vertical views - please retest with a build dated April 23 or later.
                        Last edited by Isomorphic; 22 Apr 2020, 11:11.

                        Comment


                          #13
                          Hello,
                          fixed, thanks

                          Comment


                            #14
                            Hi Isomorphix,

                            Further to my post above on the 21st Apr, was this issues also fixed in LGPL v12.0p. We appear to still have the issue after downloading version LGPL v12.0p_2020-05-11.

                            Many Thanks,
                            Col.

                            Comment


                              #15
                              Your sample code was invalid due to comma-usage - if we fix it, we see this working as expected in the 12.0 online showcase here.

                              Comment

                              Working...
                              X