heatmap: don't display cut cards

This commit is contained in:
Alexander Zobnin 2019-03-11 12:42:16 +03:00
parent bef024e4eb
commit 57f48f17a0
No known key found for this signature in database
GPG Key ID: E17E9ABACEFA59EB

View File

@ -621,8 +621,8 @@ export class HeatmapRenderer {
w = this.cardWidth;
}
// Card width should be MIN_CARD_SIZE at least
w = Math.max(w, MIN_CARD_SIZE);
// Card width should be MIN_CARD_SIZE at least, but cut cards shouldn't be displayed
w = w > 0 ? Math.max(w, MIN_CARD_SIZE) : 0;
return w;
}