diff options
author | Fawn <fangrui_tong@brown.edu> | 2019-07-26 16:23:22 -0400 |
---|---|---|
committer | Fawn <fangrui_tong@brown.edu> | 2019-07-26 16:23:22 -0400 |
commit | f5ffd372f48f68cd17ca15a8c1f5c7d67b0f7aae (patch) | |
tree | 840a6748350749bcbfe418fc08e45be958e2c8bc /src/client/views/nodes/CollectionFreeFormDocumentView.tsx | |
parent | 1bedf9e23afe26a284ba4804672ad4f396402813 (diff) | |
parent | 6c6c2a6c8e40b9f04942e65c416e16f1d3831385 (diff) |
merged
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index b09538d1a..389b9f68b 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -82,6 +82,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF } render() { + const hasPosition = this.props.x !== undefined || this.props.y !== undefined; return ( <div className="collectionFreeFormDocumentView-container" style={{ @@ -90,7 +91,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF backgroundColor: "transparent", borderRadius: this.borderRounding(), transform: this.transform, - transition: StrCast(this.props.Document.transition), + transition: hasPosition ? "transform 1s" : StrCast(this.props.Document.transition), width: this.width, height: this.height, zIndex: this.Document.zIndex || 0, |