Skip to content

Commit

Permalink
Improve scrolling in fullscreen mode, notably for Edge (#13327)
Browse files Browse the repository at this point in the history
In #12644, we changed the behavior of scrolling for the main content area slightly, to address issues with scrolling on small screens.

As part of that, there was one small issue that made it slightly harder to scroll this main content area, only when in fullscreen mode in Microsoft Edge. This PR fixes that.

Another side effect of that prior PR was that it unset some of the scrolling rules that prevented CSS bleed (when you scroll to the end of the Block Library and proceed to scroll the body content). This PR restores that.
  • Loading branch information
jasmussen authored and youknowriad committed Mar 6, 2019
1 parent ee20e1c commit faddcae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-post/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,10 @@
margin-left: $admin-sidebar-width-collapsed;
}

// Undo the above rules for fullscreen mode.
// Provide special rules for fullscreen mode.
body.is-fullscreen-mode & {
margin-left: 0 !important;
position: relative;
top: inherit;
top: $header-height;
}
}

Expand Down

0 comments on commit faddcae

Please sign in to comment.