From 049cb46931301ba30ab19c95c607c42ca3198d06 Mon Sep 17 00:00:00 2001
From: monoguitari <113245090+monoguitari@users.noreply.github.com>
Date: Thu, 24 Aug 2023 08:38:22 -0400
Subject: update overlay x/y again

---
 src/client/views/nodes/RecordingBox/RecordingBox.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'src/client/views/nodes/RecordingBox/RecordingBox.tsx')

diff --git a/src/client/views/nodes/RecordingBox/RecordingBox.tsx b/src/client/views/nodes/RecordingBox/RecordingBox.tsx
index 1908b74b5..429fc60c2 100644
--- a/src/client/views/nodes/RecordingBox/RecordingBox.tsx
+++ b/src/client/views/nodes/RecordingBox/RecordingBox.tsx
@@ -103,8 +103,8 @@ ScriptingGlobals.add(function toggleRecording(_readOnly_: boolean) {
         const remDoc = RecordingBox.screengrabber.rootDoc;
         setTimeout(() => {
             RecordingBox.screengrabber?.Finish?.();
-            RecordingBox.screengrabber!.rootDoc.overlayX = 360; //was 100
-            RecordingBox.screengrabber!.rootDoc.overlayY = 740;
+            RecordingBox.screengrabber!.rootDoc.overlayX = 70; //was 100
+            RecordingBox.screengrabber!.rootDoc.overlayY = 610;
             // DocListCast(Doc.MyOverlayDocs.data)
             // .filter(doc => doc.slides === RecordingBox.screengrabber!.rootDoc)
             // .forEach(Doc.RemFromMyOverlay);
@@ -126,12 +126,12 @@ ScriptingGlobals.add(function toggleRecording(_readOnly_: boolean) {
     } else {
         //when we first press mic
         const screengrabber = Docs.Create.WebCamDocument('', {
-            _width: 192,
-            _height: 108,
+            _width: 205,
+            _height: 115,
         });
         // Doc.UserDoc().currentScreenGrab = screengrabber;
-        screengrabber.overlayX = 360; //was -400
-        screengrabber.overlayY = 740; //was 0
+        screengrabber.overlayX = 70; //was -400
+        screengrabber.overlayY = 610; //was 0
         screengrabber[Doc.LayoutFieldKey(screengrabber) + '_trackScreen'] = true;
         Doc.AddToMyOverlay(screengrabber);  //just adds doc to overlay
         DocumentManager.Instance.AddViewRenderedCb(screengrabber, docView => {
@@ -148,7 +148,7 @@ ScriptingGlobals.add(function toggleRecPlayback(value: Doc) {
     Doc.UserDoc().currentRecording = value;
     console.log(value)
     value.overlayX =70;
-    value.overlayY = 690;
+    value.overlayY = 610;
     if (!Doc.UserDoc().isAddRecToDocMode) {
         Doc.UserDoc().isRecPlayback = true;
         Doc.UserDoc().isWorkspaceRecPlaying = true;
-- 
cgit v1.2.3-70-g09d2

