diff options
| author | bobzel <zzzman@gmail.com> | 2022-09-13 23:44:53 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-09-13 23:44:53 -0400 |
| commit | 55166bb5e37225d754f0ab30cbb158d6ce0b99b1 (patch) | |
| tree | e39301300c69a4783b9e9f22ce9b10b18426eccd /src/client/views/nodes/AudioBox.tsx | |
| parent | c911ce8d615ea9c2018b8133cb210a033d3c71d3 (diff) | |
fixed ref to overlayX/y instead of x/y in audioBox and presElement
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
| -rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 8437736ae..497b4993c 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -348,8 +348,8 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp Doc.GetProto(newDoc).recordingStart = ComputedField.MakeFunction(`self.recordingSource["${this.fieldKey}-recordingStart"]`); Doc.GetProto(newDoc).mediaState = ComputedField.MakeFunction('self.recordingSource.mediaState'); if (DocListCast(Doc.MyOverlayDocs?.data).includes(this.rootDoc)) { - newDoc.x = this.rootDoc.x; - newDoc.y = NumCast(this.rootDoc.y) + NumCast(this.rootDoc._height); + newDoc.overlayX = this.rootDoc.x; + newDoc.overlayY = NumCast(this.rootDoc.y) + NumCast(this.rootDoc._height); Doc.AddDocToList(Doc.MyOverlayDocs, undefined, newDoc); } else { this.props.addDocument?.(newDoc); |
