upgrade opentui to v0.1.61

This commit is contained in:
Sebastian Herrlinger
2025-12-17 09:38:04 +01:00
parent 340e80257a
commit 73ad20b90c
4 changed files with 26 additions and 36 deletions

View File

@@ -72,9 +72,13 @@ export function Autocomplete(props: {
const dims = dimensions()
positionTick()
const anchor = props.anchor()
const parent = anchor.parent
const parentX = parent?.x ?? 0
const parentY = parent?.y ?? 0
return {
x: anchor.x,
y: anchor.y,
x: anchor.x - parentX,
y: anchor.y - parentY,
width: anchor.width,
}
})