Skip to content

Commit

Permalink
Set clip: false on gutter tooltips
Browse files Browse the repository at this point in the history
FIX: Fix an issue that prevented tooltips in the lint gutter from being
displayed.

See https://discuss.codemirror.net/t/issues-with-tooltip-above-below-calculation/8779/4
  • Loading branch information
marijnh committed Nov 21, 2024
1 parent 8d8a153 commit e2d564f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"license": "MIT",
"dependencies": {
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@codemirror/view": "^6.35.0",
"crelt": "^1.0.5"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ function gutterMarkerMouseOver(view: EditorView, marker: HTMLElement, diagnostic
view.dispatch({effects: setLintGutterTooltip.of({
pos: line.from,
above: false,
clip: false,
create() {
return {
dom: diagnosticsTooltip(view, diagnostics),
Expand Down

0 comments on commit e2d564f

Please sign in to comment.