Skip to content

Commit

Permalink
Correct bug issue with overlay: true and offsetY still using drawInde…
Browse files Browse the repository at this point in the history
…x height offset
  • Loading branch information
johnpaulmedina committed Jan 24, 2021
1 parent 658bd92 commit 275e556
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drawer.multicanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ export default class MultiCanvas extends Drawer {
const offsetY = height * drawIndex || 0;
const halfH = height / 2;

// Override offsetY if overlay is true
if(_this7.params.splitChannelsOptions.overlay) {
offsetY = 0;
}

return fn({
absmax: absmax,
hasMinVals: hasMinVals,
Expand Down

0 comments on commit 275e556

Please sign in to comment.