Skip to content

Commit

Permalink
[Console] Always render editor hover states below the cursor (elastic…
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Nov 25, 2024
1 parent ce27885 commit eb41db2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ export const MonacoEditor = ({ localStorageValue, value, setValue }: EditorProps
fontSize: settings.fontSize,
wordWrap: settings.wrapMode === true ? 'on' : 'off',
theme: CONSOLE_THEME_ID,
// Make the quick-fix window be fixed to the window rather than clipped by
// the parent content set with overflow: hidden/auto
fixedOverflowWidgets: true,
// Force the hover views to always render below the cursor to avoid clipping
// when the cursor is near the top of the editor.
hover: {
above: false,
},
}}
suggestionProvider={suggestionProvider}
enableFindAction={true}
Expand Down

0 comments on commit eb41db2

Please sign in to comment.