Skip to content

Commit

Permalink
fix: editor cursor offset
Browse files Browse the repository at this point in the history
  • Loading branch information
jackson-bean committed Aug 10, 2023
1 parent 3c1aed7 commit 84cbba0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/SurrealistEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export function SurrealistEditor(props: SurrealistEditorProps) {
{...props}
theme={isLight ? LIGHT_THEME : DARK_THEME}
options={options}
onMount={(_editor, monaco) => {
document.fonts.ready.then(() => {
monaco.editor.remeasureFonts();
});
}}
/>
</div>
);
Expand Down

0 comments on commit 84cbba0

Please sign in to comment.