private void OnResize(ExpandingInputField arg0, float newSize)
        {
            var oSize = syncWith[arg0];

            syncWith[arg0] = newSize;
            if (oldSize == oSize || newSize > oldSize)
            {
                UpdateSizes();
            }
        }
 public void Remove(ExpandingInputField oldSyncTarget)
 {
     syncWith.Remove(oldSyncTarget);
     oldSyncTarget.onResize.RemoveListener(OnResize);
     UpdateSizes();
 }
 public void Add(ExpandingInputField newSyncTarget)
 {
     syncWith.Add(newSyncTarget, 0);
     newSyncTarget.onResize.AddListener(OnResize);
     UpdateSizes();
 }