Open Jamby93 opened 9 years ago
Thanks for reporting this bug
In the case of myself , Math.max (options.groupMinHeight, group.labelHeight) + options.eventMargin and doing, it was just well adjusted . eventMargin the option has been set to 10 .
This bug can be fixed by set 'groupMinHeight'. Set static value of height like CSS height of the group bars.
Problem in the code related to the optimization: when groups bars hidden from the visibility - legends on Axis bar still visible (groupItems). You count position of the bars that now in the visible but all legends still has visible options
When you scroll to the point that a group presents no items in the selected timerange, the other items shift up occupying a wrong group label. See at https://almende.github.io/chap-links-library/js/timeline/examples/example13_grouping.html
Correct position:
Zoomed in, wrong position:
![image](https://cloud.githubusercontent.com/assets/13535384/8926878/8f7fd7da-3513-11e5-9db6-fbf99b3d5cf2.png)
I've corrected it on line 5331 replacing
options.groupMinHeight
(which is 0 by default) toMath.max(options.groupMinHeight, group.labelHeight)
, although I don't know if it's the correct way to handle it.