[6.7] Mobile/tablet preview and meta box issues #66629
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:
✅ 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:
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:
❌ 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:
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:
cc @stokesman
Metadata
Assignees
Labels
Type
Projects
Status
🎯 Needs core commit / move to 6.7 branch
Activity