@codemirror/tooltip
Advanced tools
Comparing version 0.19.13 to 0.19.14
@@ -0,1 +1,7 @@ | ||
## 0.19.14 (2022-02-14) | ||
### Bug fixes | ||
Fix an issue where in editors without padding, tooltips for positions right on the start and end of the visible content wouldn't show up. | ||
## 0.19.13 (2022-01-19) | ||
@@ -2,0 +8,0 @@ |
@@ -152,3 +152,3 @@ import { ViewPlugin, Direction, EditorView, logException } from '@codemirror/view'; | ||
tooltipView.dom.classList.add("cm-tooltip"); | ||
if (tooltip.arrow && !tooltipView.dom.querySelector("cm-tooltip > cm-tooltip-arrow")) { | ||
if (tooltip.arrow && !tooltipView.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")) { | ||
let arrow = document.createElement("div"); | ||
@@ -192,4 +192,4 @@ arrow.className = "cm-tooltip-arrow"; | ||
pos.top >= Math.min(editor.bottom, space.bottom) || | ||
pos.right <= Math.max(editor.left, space.left) || | ||
pos.left >= Math.min(editor.right, space.right)) { | ||
pos.right < Math.max(editor.left, space.left) - .1 || | ||
pos.left > Math.min(editor.right, space.right) + .1) { | ||
dom.style.top = Outside; | ||
@@ -196,0 +196,0 @@ continue; |
{ | ||
"name": "@codemirror/tooltip", | ||
"version": "0.19.13", | ||
"version": "0.19.14", | ||
"description": "Tooltip support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58313