rodrigueswilson / timemap

Automatically exported from code.google.com/p/timemap
MIT License
0 stars 0 forks source link

band highlighting error if more than 2 bands #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add more than two bands to the timeline (with any init procedure: .init, 
custom init).
2. Each band (top to bottom) has a bigger scale than the previous (i.e. DAY -> 
WEEK -> MONTH->YEAR).
3. Sync all bands to the first one.

What is the expected output? What do you see instead?
The hightlight area in the center of each band should be set to the visible 
area of the top band. That works fine for a simile timeline, not using a 
timemap.
Instead, each band highlights the area shown in the previous band. The WEEK 
band highlight the days in the DAY band (as expected) but the MONTH band 
highlights what appears on the WEEK band, no only what appears on the DAY band. 

What version of the product are you using? On what operating system?
timemap1.6, timeline2.3.0. macosx 10.6, safari 5 or chrome 6

Please provide any additional information below.

Original issue reported on code.google.com by sr.ay...@gmail.com on 27 Sep 2010 at 6:47

GoogleCodeExporter commented 9 years ago
The problem is in TimeMap#initTimeline, line 606 - the line

bands[x].syncWith = (x-1);

should be

bands[x].syncWith = 0;

I haven't had a chance to test this yet, but if you could try the fix and 
confirm that this solves the problem, I'll commit to trunk.

Original comment by nick.rab...@gmail.com on 27 Sep 2010 at 8:28

GoogleCodeExporter commented 9 years ago
You're the man! It works like a charm now. 

Thanks!

Original comment by sr.ay...@gmail.com on 27 Sep 2010 at 8:45

GoogleCodeExporter commented 9 years ago
Committed this fix.

Original comment by nick.rab...@gmail.com on 27 Nov 2010 at 9:29