Skip to content

fix(shell): place a tooltip again when it grows after it is shown - #17

Merged
dominikhorn93 merged 2 commits into
mainfrom
fix/shell-tooltip-resize
Oct 19, 2026
Merged

dominikhorn93 merged 2 commits into
mainfrom
fix/shell-tooltip-resize

Conversation

@dominikhorn93

Copy link
Copy Markdown
Member

Why

Context Maps' rollout PR (Miragon/context-maps-modeler#64) failed the shell kit's geometry case in CI: the "Zoom in" tooltip sat 2px past the 12px edge. The tooltip was placed before the web font finished loading and grew by 2px afterwards; locally the font was already cached, so it never showed.

What

  • The tooltip observes its own size with a ResizeObserver and places itself again while it is shown. The observer is disconnected on destroy().
  • New unit test: a tooltip at the right edge that grows after showing keeps its 12px edge distance.

Part of #4. Ships as @miragon/modeler-shell 0.2.1.

🤖 Generated with Claude Code

dominikhorn93 and others added 2 commits October 19, 2026 23:58
A web font that arrives after the tooltip was placed makes it wider, so the
"Zoom in" tooltip ran 2px past the 12px edge in Context Maps' CI and failed
the kit's geometry case. The tooltip now observes its own size and places
itself again while it is shown.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…p has one

The palette test took the first ResizeObserver, which is now the tooltip's.
It looks the palette's observer up by the element it observes, and the
destroy test checks that every observer is disconnected.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@dominikhorn93
dominikhorn93 merged commit f0149e4 into main Oct 19, 2026
4 checks passed
@dominikhorn93
dominikhorn93 deleted the fix/shell-tooltip-resize branch October 19, 2026 22:12
dominikhorn93 pushed a commit that referenced this pull request Oct 19, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>modeler-shell: 0.2.1</summary>

##
[0.2.1](modeler-shell-v0.2.0...modeler-shell-v0.2.1)
(2026-10-19)


### Bug Fixes

* **shell:** place a tooltip again when it grows after it is shown
([#17](#17))
([f0149e4](f0149e4))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: miragon-release-please[bot] <292359359+miragon-release-please[bot]@users.noreply.github.com>
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