material icon indicating copy to clipboard operation
material copied to clipboard

Toasts appear in the same position regardless of settings (mobile device)

Open runethh opened this issue 10 years ago • 3 comments

How to reproduce:

  1. Go to Toast in the Demo area
  2. Change "Toast position" to e.g. "Top" and "Right"
  3. Click "Show simple"
  4. Observe that the toast is displayed in the buttom regardless of settings

Tested on Angular Material version 1.0.5 Model: Motorola Nexus 6 Browser: Chrome version 47 Operating System: Android 5.1.1 (Lollipop)

Note that this works well on a desktop

runethh avatar Feb 29 '16 11:02 runethh

+1 Same here, on iphone 6, real device and simulating with Chrome as well.

Nuajan avatar Mar 09 '16 14:03 Nuajan

This is by intention, we decided to show the toast at the bottom if the current device is small (breakpoint)

Code line: here

devversion avatar Mar 09 '16 14:03 devversion

Well, found that it can be solved by overriden style @media (max-width: 959px) { md-toast { ... and changing bottom: 0; to top: 0, So you can apply it to specific requirements of your proyect by not modifiying framework. Don´t now if it's the best practice but works. Thanks, @DevVersion

Nuajan avatar Mar 09 '16 14:03 Nuajan