Announcement

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

    Timeline overlapping issue

    Hello everyone,

    I got a little issue with my TimeLine.

    I am running SmartGWT v9.0p_2013-08-29/Pro Deployment.
    The issue differs from my previously used version 2013-08-18, I will get to this later.

    Thing is, I can't get my events to stop overlapping. When two events share timing, even partially, they start overlapping. By running my modified Timeline example (See the attachments) you can see the result.

    In my own application, I am sorry I can't post screenshots due to legal reasons, I have the following situation:
    I show events from (08/30 - 09/10)
    3 Events starting on 08/01, ending on 09/02
    4 Events starting on 09/02, ending on 09/30
    1 Event starting on 08/01, ending on 09/30

    With todays version they just start overlapping so I can't even see, which event is which.
    With my old verison, they did not overlap that agressive, but that's what happened:
    I effecitively had 4 events till 09/02 and 5 events from 09/02.
    My long event was at the third place in both parts. So everything looked fine in the right part. 5 events, same height, but in the leftern part (pre 09/02) the three ending events were sized to fit as 4 events, therefore the second event overlapped my third event (the long one). Which made reading the events description kinda impossible.

    Again, I am sorry for not being able to provide screenshots of my own application.

    Thank you very much for your time and any answers in advance. You will find the runnable code in the attachements.

    Greetings,
    Dennis Hardy
    Attached Files

    #2
    Anyone got any idea on this one?

    Comment


      #3
      We've had a look at this, and we *are* aware of an issue in timeline event overlapping which is under investigation separately, but your particular example seems to work fine for us against latest 4.0 code.

      When we run it with the altered events you provided, we see all events drawn at varying sizes so that none physically overlap.

      If that's not what you're seeing, please try to describe it again, or show a screenshot of what you see when *you* run your example

      Comment


        #4
        Just a note that we've fixed the separate issue we mentioned in this area today - if you're still seeing issues as described in this thread, please retest with a nightly build dated September 13 or later.

        Comment


          #5
          First of all, thank you very much for your reply.

          I just updated my SmartGWT version to SmartGWT v9.0p_2013-09-16/Pro Deployment.

          The issue still persists. I made a screenshot in the actual application though. I did remove some, but you should be able to see my issue on the top leftern side of the screenshot.

          Thank you very much for any additional answers,
          Dennis

          Just for your additional information. This is how I initialize my calendar:

          Code:
          calendar = new Timeline();
          calendar.setFirstDayOfWeek(1);
          calenar.setDataFetchMode(FetchMode.LOCAL);
          calendar.setCanCreateEvents(false);
          calendar.setStyleName("styleName");
          calendar.setDataSource(dataSource);
          calendar.setLaneNameField("laneNameField");
          calendar.setStartDateField("validFrom");
          calendar.setEndDateField("validTo");
          calendar.setDescriptionField("descriptionField");		calendar.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
          calendar.setNameField("nameField");
          calendar.setEventWindowStyleField("eventWindowStyleField");
          calendar.setCanResizeTimelineEvents(false);  
          calendar.setCanEditLane(false);  
          calendar.setShowEventDescriptions(false); 
          calendar.setHeaderLevels(headerLevels);
          calendar.setHeight(800);
          calendar.setEventOverlap(false);
          calendar.setStartDate(new Date());  
          Date endDate = new Date();
          endDate.setTime(endDate.getTime() + 2419200000l * 2 );
          calendar.setEndDate(endDate);  
          calendar.setCanDragEvents(false);
          calendar.setCanEditEvents(false);
          calendar.setDefaultTimelineColumnSpan(58);		        
          addMember(calendar);
          Attached Files

          Comment


            #6
            What would help would be a screenshot of what happens when you run the code you posted as a sample - if the sample you posted actually causes problems for you, that is - as we said earlier, that code seems to be working as expected for us, sharing available vertical space between events.

            Comment

            Working...
            X