Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Item visibility bug, some items get stuck on the left even if they are not in the visible range #1521
Hi, this issue is hard to reproduce but occurs from time to time..
There are some items which date is out of the visible range, but for some reason it keeps showing on the left of the timeline:
Some ideas of where to check? Trying to find where the items are removed and some way to fix it.. Maybe a function that remove from the DOM items that are not on the result of getVisibleItems?
Thanks in advance.
In my case, this bug only occurs when an item has not
I just modify a little of the example
Without this setting, it will re-size the window to show all items.
Because these two items are in distant future, they will be invisible in the initial view.
It's a little bit long, you can skip it to read the fix section.
The following code is in function
The second line
In the 5-th part, it uses
Then, I notice that after setting the items, it calls
It makes all items displayed to calculate the total range. So, the hidden items in previous step will be shown now. Without the
In addition, why does range item not have this bug?
In the function
to the end of this function.
I have same problem.
This code will show two timelines, TL1(up) and TL2(bottom).
TL1 has no problem. Item 1, item 2, and item 3 are displayed in order from left to right.
TL2 has the problem. Item 3 gets stuck on the left.