alterm4nn / ChronoZoom

ChronoZoom is an interactive timeline for all of history.
http://www.chronozoom.com
156 stars 125 forks source link

Nested exhibits appear outside of parent timeline #1421

Open saekow opened 8 years ago

saekow commented 8 years ago

Steps to reproduce:

  1. Create a timeline with a length of 300 years
  2. Create a nested timeline with length of 3 years.
  3. Create two exhibits inside the nested timeline
  4. Exhibit 1 can have any valid date within the nested timeline
  5. Set Exhibit 2 with date equal to end date of nested timeline

Observed: The two exhibits will appear outside of the nested timeline, even after refreshing.

Notes: If the nested timeline is increased in length by a few years, then the two exhibits will correctly appear inside. Could minimum exhibit size or method of calculating exhibit size relative to parent timeline be adjusted?

Example: exhibit-size-problem

Example timeline with the issue: http://www.chronozoom.com/mrbond#/tc05509eb-544b-424f-b192-c1e1b20ac40b/t246de1aa-1e6e-4a16-87e6-722b439ab7a4/teff62337-e647-4a47-90ea-3eec265f54aa/tcfcfb5eb-fc59-405c-b17f-15bde5af4536