+);
        createCell(row, 0, true, i == maxShown - 1 && count > maxShown, false);
        createCell(row, 1, true, i == maxShown - 1 && count > maxShown, false);
        createCell(row, 2, i < 2, i == maxShown - 1 && count > maxShown, false);
      }
      let paddingRow = diagram.insertRow(index++);
      let paddingCell = paddingRow.insertCell(0);
      paddingCell.height = "4";
    }
  }

  function updateScrollingState() {
    let isScrollingDisabled = (!isGridLayout() && basicSizePolicy.value == 'hug