ayoutButton();
    else
      onClickSpacingButton();

    updateGridSpanUI(grid ? grid.spanContent : null);
    updateAutolayoutAlignmentUI(auto);
    setGridMarginsSummary();
    ensureFrameFormState();
  }

  function autoContentFrameChanged() {
    parent.postMessage({ pluginMessage: {
      msg: 'set-widget-content',
      widgetContent: {
        contentNodeName: contentNodeName.value,
        previewPage: previewPage.value
      }
    }}, '*');

    // Set a default layout if one has not been selecte