Repository navigation
Conversation
…ition when pinning or unpinning.
🤖 PR meta 🤖👋 Welcome👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @brianhogg! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. 🎉 PropsUnlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @smerriman, @soapalooza, @natesprout. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the 🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. |
…/brianhogg/gutenberg into update/meta-boxes-inline-default
|
Thanks for the PR. I like the idea because I know it would please some folks to have the ability to scroll back and forth between the content and meta boxes. I saw that this works by dynamically sizing the iframe to fit its contents and using a parent container to do the scrolling. This presents a couple of issues:
When I was testing this I was able to produce the second issue with the Cover block’s built in full height toggle feature. Here's the markup for it you can paste in: <!-- wp:cover {"isUserOverlayColor":true,"minHeight":100,"minHeightUnit":"vh","layout":{"type":"constrained"}} -->
<div class="wp-block-cover" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"placeholder":"Write title…","style":{"typography":{"textAlign":"center"}},"fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">full height</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->Solving those issues would be challenging. As far as I'm aware no one has ever come up with a performant solution. For instance, see this issue in what's probably the premiere library for dynamically sizing an iframe. |
…he correct element for onCanvasScroll to fire.
…/brianhogg/gutenberg into update/meta-boxes-inline-default
|
@stokesman Thanks for the review, and good to hear there's some interest in this solution or something like it. I was also able to replicate the 100vh issue with the Cover block. The latest version pushed avoids it. The thing that now grows is the container sitting outside the iframe, so there's no finding and rewriting every Open to any other feedback once there's another chance to review or ideas for an alternate approach. |
…/brianhogg/gutenberg into update/meta-boxes-inline-default
What?
Closes #79127 and #84587
Makes the meta boxes pane "unpinned" by default, with the option to pin to the bottom. Meta box pane is 50% on open, and maximum 80% on load so the content area is never completely covered unexpectedly.
Why?
Before WordPress 7.0, meta boxes always appeared at the bottom of the content. Meta boxes are now hidden inside a thin "Meta Boxes" panel, confusing users who are looking for the contents of meta boxes containing essential plugin/theme functionality for at least some post types. Also, if the meta boxes area contains a large enough amount of content or the main meta boxes pane was resized to cover the content editing area, users need to know to reduce the size of the meta boxes pane in order to edit content.
How?
I avoided removing the iframe in unpinned mode so editor styles remained separated, and to avoid a redraw.
Testing Instructions
On a fresh WP install or new WP user with administrator role
On an existing WP install where the main meta boxes pane has been resized
On an existing or new WP install
Testing Instructions for Keyboard
The "pin to bottom" and "unpin" buttons can be accessed via the tab key. Resizing in pinned mode works as before by selecting the meta boxes bar via tab and using the up/down arrows to resize.
Screenshots or screencast
Default view when opening a CPT for the first time
View when scrolling down past the content area
Meta boxes pane is 50% the height of the editing area
New option in the editor Preferences modal
Short video showing the user experience
CleanShot.2026-10-14.at.07.57.38.mp4
Use of AI Tools
Opus 5.5, Grok 4.7 and Fable 5.1 used in scaffolding and review. Final implementation and tests were reviewed by me.