aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-10 15:53:26 -0500
committerbobzel <zzzman@gmail.com>2020-12-10 15:53:26 -0500
commitdcf5ba2699d7f83f604bedeadea3ba69061a0fd1 (patch)
tree8bfec47280c7eae7ccbb35eeea356ecd44f19bb2 /src/client/views/nodes/CollectionFreeFormDocumentView.tsx
parentd913740b994670b1b0eadd52069aeb69ef2b2380 (diff)
more cleanup to documentViewprops. got rid of nudge() added
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r--src/client/views/nodes/CollectionFreeFormDocumentView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index d68184da6..ff37847df 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -140,6 +140,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF
opacity = () => this.Opacity;
NativeWidth = () => this.nativeWidth;
NativeHeight = () => this.nativeHeight;
+ returnThis = () => this;
@computed get pointerEvents() {
if (this.props.pointerEvents === "none") return "none";
return this.props.styleProvider?.(this.Document, this.props, !this._contentView?.docView?.isSelected() ? "pointerEvents:selected" : "pointerEvents");
@@ -149,9 +150,9 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF
const backgroundColor = this.props.styleProvider?.(this.Document, this.props, "backgroundColor");
const borderRounding = StrCast(Doc.Layout(this.layoutDoc).borderRounding) || StrCast(this.layoutDoc.borderRounding) || StrCast(this.Document.borderRounding) || undefined;
- const divProps = {
+ const divProps: DocumentViewProps = {
...this.props,
- nudge: this.nudge,
+ CollectionFreeFormDocumentView: this.returnThis,
dragDivName: "collectionFreeFormDocumentView-container",
opacity: this.opacity,
ScreenToLocalTransform: this.getTransform,