Skip to content

[6.7] Mobile/tablet preview and meta box issues #66629

Closed
@t-hamano

Description

WordPress 6.7 introduced resizable meta boxes. The combination of meta boxes and device previews can cause some unintended problems. Let me explain.

Desktop Preview

✅ If the post editor is an iframe, the meta box is now resizable and the editor canvas and meta box will have separate scroll areas, which is the correct behavior:

Image

✅ On the other hand, if a block with API version 2 or lower is registered, the editor works as a non-iframe: the editor canvas and meta box together form a scrolling container, and the meta box is not resizable. This is also the correct behavior:

Image

Tablet/Mobile Preview

❌ If the post editor is an iframe, the resizable meta box will obscure the bottom of the editor canvas. Even if you resize the meta box to a minimum height, you may not be able to access the bottom content of the editor canvas:

Image

❌ If the editor is not an iframe, the meta box is not resizable. The meta box will obscure the bottom of the content. Furthermore, when you open the meta box, you will not be able to access the editor:

Image

Image

What is your proposed solution?

I think the previous behavior should be maintained for mobile/tablet previews. That is,

  • Meta boxes are not resizable.
  • The editor canvas and meta box together form a scrolling container.

This is the same as in WordPress 6.6 and should look like this:

Image

cc @stokesman

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

[Feature] Meta BoxesA draggable box shown on the post editing screen[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

  • Status

    🎯 Needs core commit / move to 6.7 branch

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions