mirror of
https://github.com/zadam/trilium.git
synced 2025-12-05 15:04:24 +01:00
fix (note_map): map overflows when switching map type in ribbon
This commit is contained in:
parent
b8585594cd
commit
eec6f7336c
@ -101,7 +101,7 @@ export default function NoteMap({ note, widgetMode, parentRef }: NoteMapProps) {
|
||||
useEffect(() => {
|
||||
if (!containerSize || !graphRef.current) return;
|
||||
graphRef.current.width(containerSize.width).height(containerSize.height);
|
||||
}, [ containerSize?.width, containerSize?.height ]);
|
||||
}, [ containerSize?.width, containerSize?.height, mapType ]);
|
||||
|
||||
// Fixing nodes when dragged.
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user