Announcement

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

    Calendar events do not align with day columns

    Happening on SmartGWT online showcase.
    Chrome Version 45.0.2454.85 m (latest as of Wed 9/9/2015)
    SmartClient Version: v10.0p_2015-09-09/LGPL Development Only (built 2015-09-09)

    Live sample:
    http://www.smartclient.com/smartgwt/...endar_category

    Screenshot:
    See attachment.
    Attached Files

    #2
    Hi Isomorphic,

    I have the same problem. May we have an answer for this problem ?

    Comment


      #3
      We see the issue and it's been assigned to be looked at - no fixed ETA but we'll update here when we have a fix.

      Comment


        #4
        Hi Isomorphic,

        Do you have any news for this problem ?

        Comment


          #5
          Not as yet - we do *see* the issue, but it is limited to 3 specific examples, non-databound ones, and only in the SmartGWT showcase, which has some custom draw-order behaviors. We are unable to replicate the problem outside of the showcase, so it should not be an issue for you in your own code.

          If you *do* see problems outside of the showcase, let us know, and show a sample test-case that reproduces the error. Otherwise, we'll update here when we get around to fixing it in the Showcase.

          Comment


            #6
            Hi Isomorphic,

            Yes, for exemple in our application we have tasks for friday and they appears on monday. And that only in the week view, everything its ok in month view.
            We'll try to get a stand alone test case.

            Just a hint for the SimpleCalendar in the showcase. If you navigate one week before and then return back, all events are aligned again.

            Comment


              #7
              The issue you noted in the showcase is due to the body of the Calendar being unexpectedly resized in the SmartGWT Showcase - the left-offsets and widths of the events are not recalculated in this case - but the effect is just that they appear a bit offset from where they should be. So, yes, moving to another range and back does indeed address the issue. In other words, its kind of cosmetic - although it still needs fixing.

              However - what your most recent post describes sounds very different - if Friday's events are *really* appearing on Monday, as opposed to just being drawn a bit offset from where they should be, then that would indicate a more serious problem, which we will indeed need a test-case to examine further.

              Comment


                #8
                Hi Isomorphic,

                Your are right. Trying to reproduce it in a standalone testcase, we found an other problem.
                It is very simple to reproduce it with SimpleCalendar from the showcase.
                Modify the first event record like this : startDay=start-10, endDay=start+10.

                The calendar in week view has unpredictable arrange of events if an event record include the week, it starts before the begining of the week and it ends after the end of the week.
                In month view, it is ok : the event is placed in the startDate cell.

                So the question is : how should we draw it in week view ?
                A solution would be to use the same technique as for month view, show it only in the startDate.

                What do you think ?

                Comment


                  #9
                  Yes, apart from Timelines, CalendarViews do not support multi-day events - but there was a bug here, as you noted.

                  Intended behavior here is that an event is only rendered if it *starts* in the visible range, and it is then clamped to the end of the day on which it starts - this has been fixed for builds dated October 8 and later.

                  If you need support for multi-day events in other CalendarViews, we may consider adding it via the Feature Sponsorship program

                  Comment

                  Working...
                  X