diff --git a/editor/assets/stylesheets/main.scss b/editor/assets/stylesheets/main.scss index 9d5406e5aceba2..8dbde3b1bd1b72 100644 --- a/editor/assets/stylesheets/main.scss +++ b/editor/assets/stylesheets/main.scss @@ -84,3 +84,27 @@ body.gutenberg_page_gutenberg-demo { } } } + +/** + * Scroll individual containers instead + */ + +body.toplevel_page_gutenberg, +body.gutenberg_page_gutenberg-demo { + overflow: hidden; + + #wpwrap, + #wpbody, + #wpbody-content, + .gutenberg, + .gutenberg__editor, + .editor-layout { + height: 100%; + } + + .editor-layout__content { + height: 100%; + overflow: auto; + -webkit-overflow-scrolling: touch; + } +}