Skip to content

Commit ea43ae1

Browse files
authored
Merge pull request #792 from rvsia/fixPopperPoistion
Fix popper position on mobile screens
2 parents 9211221 + 61aa926 commit ea43ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-renderer-demo/src/helpers/list-of-contents-select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ const ListOfContents = ({ found }) => {
7878
>
7979
Show content
8080
</Button>
81-
<Popper open={open} role={undefined} transition disablePortal anchorEl={anchorRef.current}>
81+
<Popper open={open} role={undefined} transition disablePortal anchorEl={anchorRef.current} placement="bottom-end">
8282
{({ TransitionProps }) => (
83-
<Grow {...TransitionProps} style={{ transformOrigin: 'center top' }}>
83+
<Grow {...TransitionProps} style={{ transformOrigin: 'right top' }}>
8484
<Paper>
8585
<MenuList autoFocusItem={open} id="menu-list-grow" onKeyDown={handleListKeyDown}>
8686
{found.map((text) => (

0 commit comments

Comments
 (0)