From 91562f95ac507b5361dc18a53363f4ceeb65c633 Mon Sep 17 00:00:00 2001 From: Ramon Souza Date: Mon, 2 Aug 2021 08:24:23 -0300 Subject: [PATCH] fix webcam resize - rtl languages --- .../components/media/webcam-draggable-overlay/component.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 cc9fdeba4d..19e840d5d1 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 @@ -476,8 +476,10 @@ class WebcamDraggable extends PureComponent { enable={{ top: (webcamsPlacement === 'bottom') && !swapLayout, bottom: (webcamsPlacement === 'top') && !swapLayout, - left: (webcamsPlacement === 'right') && !swapLayout, - right: (webcamsPlacement === 'left') && !swapLayout, + left: ((!isRTL && webcamsPlacement === 'right') || (isRTL && webcamsPlacement === 'left')) + && !swapLayout, + right: ((!isRTL && webcamsPlacement === 'left') || (isRTL && webcamsPlacement === 'right')) + && !swapLayout, topLeft: false, topRight: false, bottomLeft: false,