Fixes issue of compounding margins for legacy Snackbar which uses a slide animation that affects it's position on the screen
Resolves https://github.com/material-components/material-components-android/issues/741
PiperOrigin-RevId: 285246645
(cherry picked from commit 86b2ec32437c1effeb9097bb7717d48c516d53d8)