diff --git a/module/rdd-resolution-table.js b/module/rdd-resolution-table.js index d10b16f5..8286f633 100644 --- a/module/rdd-resolution-table.js +++ b/module/rdd-resolution-table.js @@ -160,10 +160,11 @@ export class RdDResolutionTable { /* -------------------------------------------- */ static _buildHTMLTable(caracValue, levelValue, minCarac, maxCarac, minLevel, maxLevel) { + let countColonnes = maxLevel - minLevel; minCarac = Math.max(minCarac, 1); maxCarac = Math.min(maxCarac, 30); minLevel = Math.max(minLevel, -10); - maxLevel = Math.min(maxLevel, 22); + maxLevel = Math.max(Math.min(maxLevel, 22), minLevel + countColonnes); let table = $("