Description
Working on woocommerce/woocommerce-blocks#5581 we noticed a strange behavior about the toolbar position: when there isn't space on top and below the block, the toolbar overlaps the block.
This behavior could generate a not optimal great experience (see image 2 and image 3).
I discovered that this use-case is handled here.
Maybe a related issue is #37076.
Step-by-step reproduction instructions
- Be sure that you have activated a block theme.
- Go to Appearance > Site Editor > Template Parts > Header.
- Click on the main block.
- Check the position of the toolbar.
Screenshots, screen recording, code snippet



Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Description
Working on woocommerce/woocommerce-blocks#5581 we noticed a strange behavior about the toolbar position: when there isn't space on top and below the block, the toolbar overlaps the block.
This behavior could generate a not optimal great experience (see image 2 and image 3).
I discovered that this use-case is handled here.
Maybe a related issue is #37076.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes