Explorar o código

heatmap: don't display cut cards

Alexander Zobnin %!s(int64=6) %!d(string=hai) anos
pai
achega
57f48f17a0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      public/app/plugins/panel/heatmap/rendering.ts

+ 2 - 2
public/app/plugins/panel/heatmap/rendering.ts

@@ -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;
   }