Components: Make mat-dialog-content size adjustable

Created on 27 Oct 2017  路  3Comments  路  Source: angular/components

Bug, feature request, or proposal:

Make .mat-dialog-content size adjustable by javascript

What is the expected behavior?

.mat-dialog-container width and height is adjustable by the open method's second parameter.
Make .mat-dialog-content size adjustable like so.

What is the current behavior?

What are the steps to reproduce?

Providing a StackBlitz/Plunker (or similar) is the best way to get the team to see your issue.

Plunker starter (using on @master): https://goo.gl/DlHd6U

StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV

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

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

Is there anything else we should know?

Most helpful comment

@jelbourn when material used md-dialog-container, the size of the container increases according to md-dialog-content (beta-8) but I've updated material to beta-12 and themat-dialog-container does not increases it sizes anymore. Now I'm trying to figure out how to increase sizes dynamically as Idon't have access dynamically to mat-dialog-container (at least I can't find on docs)

All 3 comments

mat-dialog-content is just a scrollable container for organizing dialog content. You can control its size via css like any other element

@jelbourn when material used md-dialog-container, the size of the container increases according to md-dialog-content (beta-8) but I've updated material to beta-12 and themat-dialog-container does not increases it sizes anymore. Now I'm trying to figure out how to increase sizes dynamically as Idon't have access dynamically to mat-dialog-container (at least I can't find on docs)

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shlomiassaf picture shlomiassaf  路  3Comments

LoganDupont picture LoganDupont  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

constantinlucian picture constantinlucian  路  3Comments

RoxKilly picture RoxKilly  路  3Comments