Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Update tooltip position to absolute (#347)

Myles Scolnick95eba2f9e98f
diff --git a/frontend/src/core/codemirror/cm.ts b/frontend/src/core/codemirror/cm.ts
index bd03702160..29f603d364 100644
--- a/frontend/src/core/codemirror/cm.ts
+++ b/frontend/src/core/codemirror/cm.ts
@@ -128,8 +128,8 @@ export const basicBundle = (
lineNumbers(),
rectangularSelection(),
tooltips({
- position: "fixed",
- parent: document.getElementById("App") ?? undefined,
+ // Having absolute position makes it possible to select text in the tooltip
+ position: "absolute",
}),
scrollActiveLineIntoView(),
theme === "dark" ? oneDark : [],