Skip to content

Commit e2d564f

Browse files
committed
Set clip: false on gutter tooltips
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
1 parent 8d8a153 commit e2d564f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"license": "MIT",
2828
"dependencies": {
2929
"@codemirror/state": "^6.0.0",
30-
"@codemirror/view": "^6.0.0",
30+
"@codemirror/view": "^6.35.0",
3131
"crelt": "^1.0.5"
3232
},
3333
"devDependencies": {

src/lint.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ function gutterMarkerMouseOver(view: EditorView, marker: HTMLElement, diagnostic
765765
view.dispatch({effects: setLintGutterTooltip.of({
766766
pos: line.from,
767767
above: false,
768+
clip: false,
768769
create() {
769770
return {
770771
dom: diagnosticsTooltip(view, diagnostics),

0 commit comments

Comments
 (0)