File tree 1 file changed +7
-2
lines changed
src/material-experimental/mdc-dialog
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 29
29
30
30
// MDC sets `min-height`, `max-height`, `min-width` and `max-height` We can't rely on
31
31
// this for the dialog content scrolling (as explained above), and since we allow for
32
- // custom positioning through overlay configuration, we remove the rectangle restrictions
33
- // and scale based on the CDK overlay container.
32
+ // custom positioning through overlay configuration, we remove the rectangle
33
+ // restrictions and scale based on the CDK overlay container.
34
34
& , .mdc-dialog__container , .mdc-dialog__surface {
35
35
max-height : inherit ;
36
36
min-height : inherit ;
44
44
// components can be immediate children of the surface and make this a noop. If only
45
45
// templates or DOM elements are projected, the flex display could cause unexpected
46
46
// alignment issues as explained in our coding standards (see `CODING_STANDARDS.md`).
47
+ // Additionally, the surface by default should expand based on the parent overlay
48
+ // boundaries (so that boundaries for the overlay config are respected). The surface
49
+ // by default would only expand based on its content.
47
50
.mdc-dialog__surface {
48
51
display : block ;
52
+ width : 100% ;
53
+ height : 100% ;
49
54
}
50
55
}
51
56
}
You can’t perform that action at this time.
0 commit comments