Skip to content

Commit

Permalink
Fix sticky toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 11, 2020
1 parent a1616bd commit 70ac199
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 25 deletions.
52 changes: 28 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ function BlockPopover( {
: 'top right left';
const stickyBoundaryElement = showEmptyBlockSideInserter
? undefined
: getScrollContainer( ownerDocument.defaultView.frameElement ) ||
: // The sticky boundary element should be the boundary at which the
// the block toolbar becomes sticky when the block scolls out of view.
// In case of an iframe, this should be the iframe boundary, otherwise
// the scroll container.
ownerDocument.defaultView.frameElement ||
getScrollContainer( node ) ||
ownerDocument.body;

Expand Down

0 comments on commit 70ac199

Please sign in to comment.