Skip to content

Commit

Permalink
Merge pull request #73 from unipept/fix/heatmap-crash-no-wh
Browse files Browse the repository at this point in the history
Fix heatmap crash when not explicitely setting height and width
  • Loading branch information
pverscha authored Apr 30, 2021
2 parents 229f31e + f6c2b40 commit 0e060d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/unipept-visualizations.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/visualizations/heatmap/Heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default class Heatmap {
this.originalViewPort = {
xTop: 0,
yTop: 0,
xBottom: options.width,
yBottom: options.height
xBottom: this.settings.width,
yBottom: this.settings.height
}

this.currentViewPort = this.originalViewPort;
Expand Down

0 comments on commit 0e060d4

Please sign in to comment.