[wp-trac] [WordPress Trac] #23240: #post-body-content gap with one custom metabox
WordPress Trac
noreply at wordpress.org
Sat Jan 19 14:28:42 UTC 2013
#23240: #post-body-content gap with one custom metabox
--------------------------+-----------------------------
Reporter: soulseekah | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: minor | Keywords:
--------------------------+-----------------------------
Gap before metabox when post type does not support title and editor, the
#post-body-content div is empty but has a 20px margin which makes any next
metabox unaligned. Probably shouldn't be displayed at all.
{{{
add_action( 'init', function() { register_post_type( 'test', array(
'supports' => array( 'nothing' ), 'public' => true ) ); } );
add_action( 'add_meta_boxes', function() {
add_meta_box(
'edit-ui', 'Test UI', function() {
echo '<p>Feeling a bit too heavy...</p>';
}, 'test', 'normal', 'core' );
} );
}}}
Attached image shows it all, highlighting parts in yellow.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23240>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list