');
    gridScrolling.disabled = isScrollingDisabled;
    gridScrollingTooltip.style.display = isScrollingDisabled ? 'block' : 'none';
    if (isScrollingDisabled)
      gridScrolling.checked = false;
  }

  // Hide/show/enable/disable elements based on the form state.
  function ensureFrameFormState() {
    createGridDiagram();

    let layoutType = gridColumnsOrRows.value;
    let columns = layoutType == "fixedColumns" || layoutType == "autoColumns";
    let headerText = (columns ? "Column" : "Row") + " s