Skip to content

Fix tooltip placement, animation drift, and positioning mode switches - #33

Merged
pascalbaljet merged 2 commits into
mainfrom
tooltip-improvements
Oct 19, 2026
Merged

pascalbaljet merged 2 commits into
mainfrom
tooltip-improvements

Conversation

@pascalbaljet

Copy link
Copy Markdown
Contributor

Fix tooltips appearing at the far-left edge or shifting during hover animations. Tooltips now use numeric positioning by default, preserving CSS width limits and keeping them within the viewport.

  • Add PositionOptions.anchorPositioning, with CSS anchors still enabled by default for other callers.
  • Measure layout dimensions so scale animations do not shift the computed position.
  • Apply fixed positioning before measuring auto-width content.
  • Clear stale anchor and inset styles when switching positioning modes.
  • Document the defaults and add browser regressions.

@pascalbaljet
pascalbaljet merged commit 9029fb5 into main Oct 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant