Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material Snackbar Does Not Expand to Width of Viewport on Mobile Devices #3939

Closed
mtpultz opened this issue Apr 6, 2017 · 4 comments · Fixed by #7485
Closed

Material Snackbar Does Not Expand to Width of Viewport on Mobile Devices #3939

mtpultz opened this issue Apr 6, 2017 · 4 comments · Fixed by #7485
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@mtpultz
Copy link

mtpultz commented Apr 6, 2017

Bug, feature request, or proposal:

Bug (more like missing functionality)

What is the expected behavior?

On mobile devices according to material design spec the toast/snackbar should be the full width of the viewport.

What is the current behavior?

Toast/snackbar remains fixed width in the centered

What are the steps to reproduce?

This is missing functionality of the base MdSnackBar and can be reproduced by opening the MdSnackBar on a viewport that is considered a mobile device this.snackBar.open(message, 'Close');

What is the use-case or motivation for changing an existing behavior?

It isn't to material design spec.

Which versions of Angular, Material, OS, browsers are affected?

N/A

@josephperrott
Copy link
Member

josephperrott commented Apr 6, 2017

This is actually blocked by #1951, as the PR for this allows for determining the screen type by size.

Though after #1951 is addressed, we should be able to use the correct layout and spacing for mobile.

@jelbourn jelbourn added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Apr 9, 2017
@mtpultz
Copy link
Author

mtpultz commented Jul 9, 2017

Also, noticed that openFromComponent doesn't open to the full width of the viewport on mobile using the pizza party docs example in an application since I only mentioned open in the initially reported issue.

@naveedahmed1
Copy link

Any update on this?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants