Skip to content

Commit 02a5bfa

Browse files
committed
g.line: fix stripes shrinking in zoomInto method
1 parent 5174b77 commit 02a5bfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

g.line.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@
482482
miny = ydim.from,
483483
maxy = ydim.to,
484484
ky = (height - gutter * 2) / ((maxy - miny) || 1),
485-
stripes_miny = Math.min.apply(Math, stripesy),
486-
stripes_maxy = Math.max.apply(Math, stripesy);
485+
stripes_miny = Math.min.apply(Math, stripesy[opts.stripes.id]),
486+
stripes_maxy = Math.max.apply(Math, stripesy[opts.stripes.id]);
487487
}
488488

489489
var res = createLines();

0 commit comments

Comments
 (0)