From 0686d497275e6deae983fcfd821495d0d126204f Mon Sep 17 00:00:00 2001
From: monoguitari <113245090+monoguitari@users.noreply.github.com>
Date: Thu, 24 Aug 2023 08:06:46 -0400
Subject: overlay ui changes

---
 src/client/views/nodes/RecordingBox/RecordingBox.tsx | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 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 ade8d0d45..1908b74b5 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 = 400; //was 100
-            RecordingBox.screengrabber!.rootDoc.overlayY = 100;
+            RecordingBox.screengrabber!.rootDoc.overlayX = 360; //was 100
+            RecordingBox.screengrabber!.rootDoc.overlayY = 740;
             // 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: 384,
-            _height: 216,
+            _width: 192,
+            _height: 108,
         });
         // Doc.UserDoc().currentScreenGrab = screengrabber;
-        screengrabber.overlayX = 100; //was -400
-        screengrabber.overlayY = 100; //was 0
+        screengrabber.overlayX = 360; //was -400
+        screengrabber.overlayY = 740; //was 0
         screengrabber[Doc.LayoutFieldKey(screengrabber) + '_trackScreen'] = true;
         Doc.AddToMyOverlay(screengrabber);  //just adds doc to overlay
         DocumentManager.Instance.AddViewRenderedCb(screengrabber, docView => {
@@ -147,8 +147,8 @@ ScriptingGlobals.add(function toggleRecPlayback(value: Doc) {
     let docval = undefined;
     Doc.UserDoc().currentRecording = value;
     console.log(value)
-    value.overlayX = 100;
-    value.overlayY = 100;
+    value.overlayX =70;
+    value.overlayY = 690;
     if (!Doc.UserDoc().isAddRecToDocMode) {
         Doc.UserDoc().isRecPlayback = true;
         Doc.UserDoc().isWorkspaceRecPlaying = true;
-- 
cgit v1.2.3-70-g09d2

