diff --git a/src/wp-admin/js/editor-expand.js b/src/wp-admin/js/editor-expand.js index 43ef3b12aa..25f86c2847 100644 --- a/src/wp-admin/js/editor-expand.js +++ b/src/wp-admin/js/editor-expand.js @@ -600,7 +600,7 @@ // Adjust when collapsing the menu, changing the columns, changing the body class. $document.on( 'wp-collapse-menu.editor-expand postboxes-columnchange.editor-expand editor-classchange.editor-expand', adjust ) - .on( 'postbox-toggled.editor-expand', function() { + .on( 'postbox-toggled.editor-expand postbox-moved.editor-expand', function() { if ( ! fixedSideTop && ! fixedSideBottom && window.pageYOffset > pinnedToolsTop ) { fixedSideBottom = true; window.scrollBy( 0, -1 ); diff --git a/src/wp-admin/js/postbox.js b/src/wp-admin/js/postbox.js index 15cdecc923..a8222ee296 100644 --- a/src/wp-admin/js/postbox.js +++ b/src/wp-admin/js/postbox.js @@ -139,6 +139,7 @@ var postboxes; $(ui.sender).sortable('cancel'); postboxes._mark_area(); + $document.trigger( 'postbox-moved', ui.item ); } });