If i initialize drawer in container with SlideProps={{ direction: 'left' }} (or SlideProps={{ direction: 'up' }} too) container should stay immovable
Container jumps
Link: https://codesandbox.io/s/serene-bouman-wvvf6
Drawer inside a containeranchor="right"SlideProps={{ direction: 'left' }} or SlideProps={{ direction: 'up' }}I want to create drawer that is located in a container and appears from right side of the window.
For example, if i set SlideProps to other values(right or down), my container stays still. Here are some examples of this issue:
anchor="left" SlideProps={{ direction: 'left' }} Incorrect behavior

anchor="left" SlideProps={{ direction: 'right' }} Correct behavior

anchor="right" SlideProps={{ direction: 'left' }} (_my case_) Incorrect behavior

anchor="right" SlideProps={{ direction: 'right' }} Correct behavior

BUT!
i explored sources of Drawer and have noticed that this issue appears exactly in Slide component particularly from line 43 to line 57
if in this fragment: translateX(${window.innerWidth}px) translateX(-${rect.left - offsetX}px) i change first translate to translateX(${window.innerWidth - 32}px) (exactly 32>, i dont know why, 31<= not working) it will work fine
| Tech | Version |
|--------------|---------|
| Material-UI | v4.1.3 |
| React | v16.8.6 |
| Browser | Chrome v75 |
@merkelAlbert Interesting. I have no clue what could be wrong in this case. Did you or your team found a solution?

It looks like a browser bug but it behaves in different wrong ways on Safari, Chrome and Firefox.
@oliviertassinari, yes, we found two doubtful solutions. First is disablePortal: true in ModalProps.Second is variant="persistent". We can adapt these solutions to our requirements. But the fact is that we cant use this native drawer api out of the box like with working cases, that i described in the issue
Most helpful comment
@oliviertassinari, yes, we found two doubtful solutions. First is
disablePortal: trueinModalProps.Second isvariant="persistent". We can adapt these solutions to our requirements. But the fact is that we cant use this native drawer api out of the box like with working cases, that i described in the issue