-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Zoom out: cover block resize handler is misplaced #63522
Comments
In the case of the cover block, the handle is missplaced because the scaling from zoom out is not applying to it. I wonder if on zoom out it should be showing at all. We are working under the assumption that on zoom out mode all top level blocks are groups but that's not always the case, even more so on the post/page editor. The image block is also showing handles, for example, and the cover block is allowing for that drag and drop replacement of the image that I reported earlier. This is all expected behavior given that those top level blocks are not really locked. Should they if they are not group blocks? |
Actually, top level blocks have getBlockEditingMode set to |
One option could be to apply the zoom out scaling to the handles. |
I checked this and the logic no longer makes any assumptions about the block type of the actual sections themselves. These are defined as the immediate child blocks of the "section root block" (i.e. The only criteria in play for the Template post type, is that the "section root block" must be:
|
Description
Step-by-step reproduction instructions
Open a pattern category in the inserter and select a cover block
Screenshots, screen recording, code snippet
No response
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
The text was updated successfully, but these errors were encountered: