-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Full screen or full width of Dialog? #5408
Comments
Dupe of #3239 Also you can use |
thanks willshowell. This works well, and elegantly enough. |
hi willshowell i tried your changes , but still dialogbox is not coming in full screen width. let dialogRef = this.dialog.open(DialogOverviewExampleDialog, {
please correct me if am wrong. email id is [email protected] |
@sathyapv92 see #9823 (comment). The solution has changed since I wrote that comment. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
I would like to have the dialog has full width of the screen. I may want full screen in some scenarios.
What is the expected behavior?
Full width.
What is the current behavior?
With such codes:
The dialog expands to the left edge of the screen, but there's still large space between the right border and the right edge.
What are the steps to reproduce?
In https://material.angular.io/components/dialog/examples, and click Edit in Plunker, then copy/paste above codes, particularly with
{width: window.innerWidth+'px'}
or
{width: '100%'}
What is the use-case or motivation for changing an existing behavior?
Small mobile screen
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Past versions and the latest:
Is there anything else we should know?
It might be even better to have full, fullWidth, fullHeight in MdDialogConfig.
The text was updated successfully, but these errors were encountered: