diff --git a/wp-admin/js/editor-expand.js b/wp-admin/js/editor-expand.js
index bf67c64..f1b3caa 100644
|
a
|
b
|
|
| 467 | 467 | // Sidebar pinning |
| 468 | 468 | if ( $postboxContainer.width() < 300 && heights.windowWidth > 600 && // sidebar position is changed with @media from CSS, make sure it is on the side |
| 469 | 469 | $document.height() > ( $sideSortables.height() + postBodyTop + 120 ) && // the sidebar is not the tallest element |
| 470 | | heights.windowHeight < editorHeight ) { // the editor is taller than the viewport |
| | 470 | heights.windowHeight < $('#poststuff').outerHeight() ) { // the page content is taller than the viewport |
| 471 | 471 | |
| 472 | 472 | if ( ( heights.sideSortablesHeight + pinnedToolsTop + sidebarBottom ) > heights.windowHeight || fixedSideTop || fixedSideBottom ) { |
| 473 | 473 | // Reset when scrolling to the top |