
      }
    } else if (layoutType == "fixedRows" || layoutType == "autoRows") {
      // Create the specified number of rows and three columns
      let maxShown = 6;
      let count = toNumber(gridColumnsRows.value);
      let countShown = Math.min(count, maxShown);
      let index = 0;
      for (i = 0; i < countShown; ++i) {
        let paddingRow = diagram.insertRow(index++);
        let paddingCell = paddingRow.insertCell(0);
        paddingCell.height = "4";
        let row = diagram.insertRow(index+