Skip to content

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Sep 25, 2025

What I did

Resolved the issue that the toolbar is incorrectly positioned when the assigned element is too small or the toolbar has more items than the default.

Resolves: #2692

How I did it

Via a ResizeObserver the position is updated when the toolbar switches between elements or changes its size due to its content or window limits.

How to verify it

Tested with latest Chrome, Safari, Firefox

NodeToolbarPositionFixed

@Sebobo
Copy link
Member Author

Sebobo commented Sep 25, 2025

I wasn't able to fix this with fully with CSS anchor positioning as I only got it working with latest Chrome and Safari. Firefox didn't like it, and the polyfill (https://github.com/oddbird/css-anchor-positioning) is not easy to apply, as we need to apply it whenever the toolbar is rerendered inside the guest frame. But the polyfill will still be needed for #3972.

@Sebobo Sebobo requested a review from ahaeslich September 25, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InlineToolbar position wrong if content width is very small
1 participant