From fce072681f60e89cf47760de42717f1fe4a88569 Mon Sep 17 00:00:00 2001 From: Vitor Mateus <vitormateusalmeida@gmail.com> Date: Thu, 5 Dec 2019 17:01:54 -0300 Subject: [PATCH] Fix overflow and resize when placement left or right --- .../webcam-draggable-overlay/component.jsx | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/media/webcam-draggable-overlay/component.jsx b/bigbluebutton-html5/imports/ui/components/media/webcam-draggable-overlay/component.jsx index 68c9b25d65..97a34c4486 100644 --- a/bigbluebutton-html5/imports/ui/components/media/webcam-draggable-overlay/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/media/webcam-draggable-overlay/component.jsx @@ -147,10 +147,10 @@ class WebcamDraggable extends Component { top, left, width, height, } = videoListRefRect; return { - top: top - 10, // 10 = margin + top, // 10 = margin left, // 10 = margin width, // 20 = margin - height: height + 20, // 20 = margin + height, // 20 = margin }; } return false; @@ -191,31 +191,30 @@ class WebcamDraggable extends Component { webcamDraggableDispatch({ type: 'setplacementToTop' }); } else if (targetClassname.includes('Right')) { webcamDraggableDispatch({ type: 'setplacementToRight' }); - webcamDraggableDispatch( - { - type: 'setLastPosition', - value: { - x: 0, - y: 0, - }, - }, - ); + // webcamDraggableDispatch( + // { + // type: 'setLastPosition', + // value: { + // x: 0, + // y: 0, + // }, + // }, + // ); } else if (targetClassname.includes('Bottom')) { webcamDraggableDispatch({ type: 'setplacementToBottom' }); } else if (targetClassname.includes('Left')) { webcamDraggableDispatch({ type: 'setplacementToLeft' }); - webcamDraggableDispatch( - { - type: 'setLastPosition', - value: { - x: 0, - y: 0, - }, - }, - ); + // webcamDraggableDispatch( + // { + // type: 'setLastPosition', + // value: { + // x: 0, + // y: 0, + // }, + // }, + // ); } } - this.handleWebcamDragStart(); webcamDraggableDispatch({ type: 'dragEnd' }); window.dispatchEvent(new Event('resize')); } -- GitLab