Closed
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
The elements inside a dialog template should be aligned/pinned correctly when a dialog is opened with a specified height.
- An element decorated with the
mat-dialog-title
directive should be pinned to the top - An element decorated with the
mat-dialog-actions
directive should be pinned to the bottom
What is the current behavior?
- A dialog is opened with two visible scroll bars
one scrolls through title and content, other scrolls through content and actions
- A dialog is opened with only one visible scroll bar, but behaves the same as the scenario above.
- A dialog is opened with a single scroll bar and scrolls normally but the title and actions buttons are not pinned.
- A dialog is opened that is taller than its content and the action buttons are not pinned to the bottom.
What are the steps to reproduce?
StackBlitz from Angular Material's Dialog documentation.
A dialog is opened with a template the uses the directives and sets a custom height 350px.
An edited StackBlitz to show a different scenario.
A dialog is opened with a template the uses the directives and sets a custom height that is bigger than the content.
What is the use-case or motivation for changing an existing behavior?
The existing behavior is not consistent and does not display the expected behavior described in the documentation.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
package | version |
---|---|
angular | 6.0.7 |
material/cdk | 6.3.3 |
typescript | 2.7.2 |
browsers | version |
---|---|
Chrome | 67.0.3396.99 (64-bit) |
Firefox | 61.0.1 (64-bit) |