1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror
Caleb John 7a9ec627ee
Desktop: Resolves #5233: Fire resize event whenever the layout changes (#5344)
* 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.
2021-09-19 11:36:23 +01:00
..
styles Server: Add support for sharing notes via a link 2021-01-29 18:45:11 +00:00
utils Desktop: Resolves #5233: Fire resize event whenever the layout changes (#5344) 2021-09-19 11:36:23 +01:00
CodeMirror.tsx Desktop: Resolves #5233: Fire resize event whenever the layout changes (#5344) 2021-09-19 11:36:23 +01:00
Editor.tsx Plugins: Support executing codemirror commands from plugins when using execCommand (#5012) 2021-06-07 10:19:35 +01:00
Toolbar.tsx Chore: Moved app state to separate file 2021-09-04 18:11:29 +01:00