Announcement

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

    Wrong overlap sort in Calendar

    Hi,

    we are using smartclient 10.0d and I am using the Calendar with showDayLanes as true.
    In the window that I am developing, I have a dropdown with the list of available lanes, where I can pick the lanes that I want to be displayed at the moment. When I do so by calling setLanes with the array of labels to be displayed, the order by which overlapping events are displayed is incorrect.

    This can be reproduced at:
    http://www.smartclient.com/docs/10.0/a/system/reference/SmartClient_Explorer.html#simpleDayLanes
    with the following JS at dayLanes.js:
    http://pastebin.com/A5xEW8Dn
    video: http://screencast.com/t/A6ganrd9mrB

    At the moment my workaround is to call calendar.dayView.refreshEvents(); after setLanes, but setLanes is already calling refreshEvents so this is actually a second call.

    Am I missing something here?
    Thanks

    #2
    That looks like a bug - it's been assigned to be looked into

    Comment


      #3
      You should find this fixed for builds dated October 21 and later

      Comment


        #4
        Thank you!

        Comment


          #5
          Hello,

          it seems that the problem is still reproducible. We have used the following code: http://pastebin.com/CRxyVagZ using the latest 10.0 available version: https://smartclient.com/builds/SmartClient/10.0p/LGPL/2014-12-04

          As you can see here: http://www.screencast.com/t/qhUrcAgEb we are still having the overlap problem.

          Thanks

          Comment


            #6
            You didn't include the dayLaneData

            Comment


              #7
              Never mind - we realise it uses the data from the simpleDayLanes sample

              Comment


                #8
                Hello,

                sorry, yes the provided code is using the simpleDayLanes data sample

                Thanks

                Comment


                  #9
                  We do see this, but only in the Feature Explorer, which has some special custom behaviors around it's component management - we don't see the issue outside of the Feature Explorer, in either FF or Chrome.

                  Do you?

                  Comment


                    #10
                    Hello,

                    yes we are able to reproduce it in our application, either in FF and Chrome, using a similar code and sample data, you can see it here: http://www.screencast.com/t/y8Q0zQ6jl9V

                    It seems that is easier to reproduce if the width available to place the calendar is reduced.

                    Thanks!

                    Comment


                      #11
                      The double-rendering of events that caused this in the case of the Feature Explorer (redraw due to resize) has been addressed for builds dated December 12 and later. Let us know if this doesn't fix things for you.

                      Comment

                      Working...
                      X