diff --git a/packages/editor/src/index.tsx b/packages/editor/src/index.tsx index bf5d4dad..25b67067 100644 --- a/packages/editor/src/index.tsx +++ b/packages/editor/src/index.tsx @@ -64,7 +64,7 @@ const Editor = ({ designer.loadMap(mindmap); if (options.locked) { - $notify(options.lockedMsg); + $notify(options.lockedMsg, false); } }, []); @@ -96,6 +96,7 @@ const Editor = ({ const locale = options.locale; const msg = I18nMsg.loadLocaleData(locale); + const mindplotStyle = (options.mode === 'viewonly') ? { top: 0 } : { top: 'inherit' }; return ( {(options.mode !== 'viewonly') && @@ -104,9 +105,9 @@ const Editor = ({ onAction={onAction} /> } -
+