question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Full screen dialog in mobile mode

See original GitHub issue

Bug, feature request, or proposal:

A bug to me

What is the expected behavior?

Being able to have full screen dialogs by overriding cdk-overlay-pane class

What is the current behavior?

Not possible because framework adds max-width: 80vw; to element’s style

What are the steps to reproduce?

Override cdk-overlay-pane with width: 100% and see it ignored because of max-width: 80vw; in the style

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

Displaying html blobs of site’s T&C and privacy policy. May not the best way to use dialogs, but nonetheless…

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

Angular 5.2.3, Material 5.2.0

Is there anything else we should know?

I’m upgrading a site from an early 2.0.0.beta8 where this was possible.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

40reactions
jtcrowsoncommented, May 15, 2018

It’d be nice if modals could provide a full screen modal when on mobile (sm & xs) screens.

21reactions
goldenbearkincommented, Feb 5, 2019

fullscreen dialog is actually in the material design spec. https://material.io/design/components/dialogs.html#full-screen-dialog

can we have something like this in angular material?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set dialog to show in full screen? - android
FEATURE_NO_TITLE); dialog.setContentView(R.layout.loading_screen); Window window = dialog.getWindow(); WindowManager.LayoutParams wlp = window.
Read more >
How to make full screen custom dialog in Android?
This example demonstrate about How to make full screen custom dialog. Step 1 − Create a new project in Android Studio, go to...
Read more >
How to Create a Full Screen AlertDialog in Android?
So in this article, we will show you how you could make a Full-Screen AlertDialog in Android. Follow the below steps once the...
Read more >
Implementing the new Material Design Full-Screen Dialog for ...
The Material Design guidelines describe a component called a full-screen dialog. This component is not yet officially available.
Read more >
Dialogs – Material Design 3
1. Full-screen dialog on mobile. 2. Dialog on a tablet.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found