uesEqual ? gridMarginLeft.value : "...";
    gridMarginsAll.disabled = !valuesEqual;
    gridMarginsCollapseButton.onclick = valuesEqual ? onClickGridMarginsCollapse : null;
    if (!valuesEqual)
      onClickGridMarginsExpand();
  }
  
  function updateGridSpanUI(gridSpanContent) {
    let content = currentSelection ? currentSelection.content : null;
    while (gridSpanTable.rows.length > 1)
      gridSpanTable.deleteRow(1);

    if (!isGridLayout() || !content)
      return;
    
    let index = 0;
    fo