aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/trails/PresElementBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-13 23:44:53 -0400
committerbobzel <zzzman@gmail.com>2022-09-13 23:44:53 -0400
commit55166bb5e37225d754f0ab30cbb158d6ce0b99b1 (patch)
treee39301300c69a4783b9e9f22ce9b10b18426eccd /src/client/views/nodes/trails/PresElementBox.tsx
parentc911ce8d615ea9c2018b8133cb210a033d3c71d3 (diff)
fixed ref to overlayX/y instead of x/y in audioBox and presElement
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
-rw-r--r--src/client/views/nodes/trails/PresElementBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx
index d88ff45fa..cf1621985 100644
--- a/src/client/views/nodes/trails/PresElementBox.tsx
+++ b/src/client/views/nodes/trails/PresElementBox.tsx
@@ -432,8 +432,8 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {
activeItem.recording = recording;
// make recording box appear in the bottom right corner of the screen
- recording.x = window.innerWidth - recording[WidthSym]() - 20;
- recording.y = window.innerHeight - recording[HeightSym]() - 20;
+ recording.overlayX = window.innerWidth - recording[WidthSym]() - 20;
+ recording.overlayY = window.innerHeight - recording[HeightSym]() - 20;
Doc.AddDocToList(Doc.MyOverlayDocs, undefined, recording);
}
};