Skip to content

Commit

Permalink
Try: Show metaboxes peeking in even on tiny screens. (#20262)
Browse files Browse the repository at this point in the history
* Try: Show metaboxes peeking in even on tiny screens.

Fixes #19709.

* Try fixing the e2e test

Co-authored-by: Riad Benguella <benguella@gmail.com>
  • Loading branch information
2 people authored and jorgefilipecosta committed Feb 24, 2020
1 parent cadfb1b commit 557c7cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ describe.each( [
if ( ! isUnifiedToolbar ) {
it( 'should not scroll page', async () => {
while (
await page.evaluate(
() =>
wp.dom.getScrollContainer( document.activeElement )
.scrollTop === 0
)
await page.evaluate( () => {
const scrollable = wp.dom.getScrollContainer(
document.activeElement
);
return ! scrollable || scrollable.scrollTop === 0;
} )
) {
await page.keyboard.press( 'Enter' );
}
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

.edit-post-visual-editor .block-editor-writing-flow__click-redirect {
// Allow the page to be scrolled with the last block in the middle.
min-height: 50vh;
min-height: 40vh;
width: 100%;
}

Expand Down

0 comments on commit 557c7cf

Please sign in to comment.