From 9f345c91bbc987ef6fc000217cf9174d57d27dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Fri, 2 Jun 2023 14:46:17 -0300 Subject: [PATCH] fix dock param --- .../imports/ui/components/whiteboard/component.jsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/whiteboard/component.jsx b/bigbluebutton-html5/imports/ui/components/whiteboard/component.jsx index 78f7fe21a3..5af036dec1 100644 --- a/bigbluebutton-html5/imports/ui/components/whiteboard/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/whiteboard/component.jsx @@ -142,7 +142,7 @@ export default function Whiteboard(props) { const setDockPosition = (setSetting) => { if (hasWBAccess || isPresenter) { - if (((height < SMALLEST_HEIGHT) || (width < SMALLEST_WIDTH))) { + if (((height < SMALLEST_DOCK_HEIGHT) || (width < SMALLEST_DOCK_WIDTH))) { setSetting('dockPosition', 'bottom'); } else { setSetting('dockPosition', isRTL ? 'left' : 'right'); @@ -1029,14 +1029,6 @@ export default function Whiteboard(props) { const size = ((height < SMALL_HEIGHT) || (width < SMALL_WIDTH)) ? TOOLBAR_SMALL : TOOLBAR_LARGE; - if (hasWBAccess || isPresenter) { - if (((height < SMALLEST_DOCK_HEIGHT) || (width < SMALLEST_DOCK_WIDTH))) { - tldrawAPI?.setSetting('dockPosition', 'bottom'); - } else { - tldrawAPI?.setSetting('dockPosition', isRTL ? 'left' : 'right'); - } - } - const menuOffsetValues = { true: { true: `${styleMenuOffsetSmall}`,