From a16be30682d686e6588185a1104d268ae20c866d Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Fri, 12 Jun 2020 11:26:40 -0400 Subject: fixed bug with initial position of CollectionGrid items. Added undo for changing GridView compaction --- .../views/collections/CollectionViewChromes.tsx | 11 ++++---- .../collectionGrid/CollectionGridView.tsx | 29 +++++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx index 64a459aff..459d98bb5 100644 --- a/src/client/views/collections/CollectionViewChromes.tsx +++ b/src/client/views/collections/CollectionViewChromes.tsx @@ -686,9 +686,9 @@ export class CollectionGridViewChrome extends React.Component) => { - this.props.CollectionView.props.Document.gridCompaction = e.target.selectedOptions[0].value; + // need to change startCompaction so that this operation will be undoable. + this.props.CollectionView.props.Document.gridStartCompaction = e.target.selectedOptions[0].value; } render() { @@ -709,7 +709,7 @@ export class CollectionGridViewChrome extends React.Component) => { e.stopPropagation(); e.preventDefault(); e.currentTarget.focus(); }} /> */} - + @@ -717,7 +717,7 @@ export class CollectionGridViewChrome extends React.Component + value={StrCast(this.props.CollectionView.props.Document.gridStartCompaction, StrCast(this.props.CollectionView.props.Document.gridCompaction))}> {["vertical", "horizontal", "null"].map(type =>