Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inline-toolbar): editor element grow on inline toolbar close #2516

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Oct 18, 2023

Some users meets a bug:

When Inline Toolbar closes, wrapper element grows down. See a grey zone below editor — it appears when Inline Toolbar left and top becomes "unset".

image

That happened because Inline Toolbar inserted below the blocks-wrapper, so "unset" returns it to the DOM-based position: below the editor. And since the Inline Toolbar has height, browser somewhy expands a wrapper.

As a solution, we can reset Inline Toolbar coords by "0" instead of "unset". So hidden Inline Toolbar will be placed at top-left corner of editor.

@neSpecc neSpecc merged commit 3533774 into next Oct 18, 2023
6 checks passed
@neSpecc neSpecc deleted the fix/it-close branch October 18, 2023 21:44
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.

3 participants