Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

BG Items not rendering correctly when calling fit() #111

Open
mpf82 opened this issue Jan 30, 2019 · 0 comments
Open

BG Items not rendering correctly when calling fit() #111

mpf82 opened this issue Jan 30, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@mpf82
Copy link

mpf82 commented Jan 30, 2019

It seems there is an issue with rendering BG items when calling timeline.fit() if the maximum zoom level is smaller than the range of the dates in the data set.

In my case, I allow a zoomMax of 2 days:

zoomMax: 1000 * 60 * 60 * 24 * 2, // maximum 2 days

However, if I load data that spans 5 days and call fit() the BG items (in yellow) get messed up. (Messed up = they suddenly span over the whole width of the timeline).

I created a GIF to demonstrate the issue:

timeline_bg_items_issue

Once the items are messed up, scrolling all the way to the left and to the right will somehow make them render correctly (not shown in the gif).

I have tested this both in version 2.2.3 and the latest 2.3.4.

Note: The issue does not appear if the range of dates in the data set fits into the "zoomMax" range (in this case, if I select less than 2 days of data).

@yotamberk yotamberk added the bug Something isn't working label Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants