Automattic / isolated-block-editor

Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress.
343 stars 50 forks source link

Fixed editor topbar #218

Closed vonloxx closed 1 year ago

vonloxx commented 1 year ago

Hi! First of all, great work on this project! I'm trying to add some functionality such as fixed editor top and I was able to achieve that with a custom component. fixed-editor-topbar-1

The issue is scrolling with, for example, the block inserter sidebar opened: fixed-editor-topbar-2 The right behavior should be to be "attached" to the topbar.

I've checked Gutenberg's components (block inserter and popover) and it seems it adds some scroll listeners to a parent container to follow the scroll but since I'm scrolling the whole document node, it won't work.

I could add the behaviors to the inserter sidebar and popover on my custom component but I wonder if anyone got ideas to properly handle/workaround this? Without too much "hacking"... ;)

vonloxx commented 1 year ago

Due to GitHub's latest server issues, this issue got repostes several times 😬