WordPress.org

Make WordPress Core

Changeset 37659


Ignore:
Timestamp:
06/08/2016 10:36:47 PM (4 years ago)
Author:
azaozz
Message:

Editor, editor-expand: adjust the sidebar position when moving a postbox from one column to another.

Fixes #35230.

Location:
trunk/src/wp-admin/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/editor-expand.js

    r37603 r37659  
    601601            // Adjust when collapsing the menu, changing the columns, changing the body class.
    602602            $document.on( 'wp-collapse-menu.editor-expand postboxes-columnchange.editor-expand editor-classchange.editor-expand', adjust )
    603                 .on( 'postbox-toggled.editor-expand', function() {
     603                .on( 'postbox-toggled.editor-expand postbox-moved.editor-expand', function() {
    604604                    if ( ! fixedSideTop && ! fixedSideBottom && window.pageYOffset > pinnedToolsTop ) {
    605605                        fixedSideBottom = true;
  • trunk/src/wp-admin/js/postbox.js

    r37195 r37659  
    140140
    141141                    postboxes._mark_area();
     142                    $document.trigger( 'postbox-moved', ui.item );
    142143                }
    143144            });
Note: See TracChangeset for help on using the changeset viewer.