fix dock param
This commit is contained in:
parent
11f23b71ab
commit
9f345c91bb
@ -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}`,
|
||||
|
Loading…
Reference in New Issue
Block a user