mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
7a9ec627ee
* Fire resize event whenever the layout changes This solves an issue where the markdown editor was changing size physically, but the refresh function wasn't being called so the editor would lose track of it's size and place the cursor wrongly. The editor was able to correctly resize when the window resize event was fired, but this didn't happen when the sidebars were toggled. The solution implemented here is to hook in to the function where layout props are changed, and emit a resize event there. This means that anytime the layout changes (whether or not it affects sizing), the resize event will be fired. |
||
---|---|---|
.. | ||
index.ts | ||
types.ts | ||
useCursorUtils.test.ts | ||
useCursorUtils.ts | ||
useEditorSearch.ts | ||
useExternalPlugins.ts | ||
useJoplinCommands.ts | ||
useJoplinMode.ts | ||
useKeymap.ts | ||
useLineSorting.ts | ||
useListIdent.ts | ||
useScrollUtils.ts |