1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
joplin/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/utils
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
..
index.ts Desktop: Resolves #5233: Fire resize event whenever the layout changes (#5344) 2021-09-19 11:36:23 +01:00
types.ts All: Use Lerna to manage monorepo 2020-11-05 16:58:23 +00:00
useCursorUtils.test.ts Desktop: Fixes #4877: Incorrect list renumbering (#4914) 2021-06-07 10:17:46 +01:00
useCursorUtils.ts Desktop: Fixes #4877: Incorrect list renumbering (#4914) 2021-06-07 10:17:46 +01:00
useEditorSearch.ts Tools: Renamed package namespace from @joplinapp to @joplin 2020-11-07 15:59:37 +00:00
useExternalPlugins.ts Server: Add support for sharing notes via a link 2021-01-29 18:45:11 +00:00
useJoplinCommands.ts Plugins: Support executing codemirror commands from plugins when using execCommand (#5012) 2021-06-07 10:19:35 +01:00
useJoplinMode.ts Desktop: Split code block class in two (#5359) 2021-08-21 10:34:54 +01:00
useKeymap.ts macOS: Added Cmd+Backspace shortcut to delete line (#5478) 2021-09-19 11:32:58 +01:00
useLineSorting.ts All: Use Lerna to manage monorepo 2020-11-05 16:58:23 +00:00
useListIdent.ts Desktop: Resolves #4750 Disappearing text in markdown editor (#4781) 2021-04-01 21:39:42 -06:00
useScrollUtils.ts All: Use Lerna to manage monorepo 2020-11-05 16:58:23 +00:00