Closed
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
CDK overlay panel should get inline width and height properties defined by the 'width' and 'height' entries in the config.
What is the current behavior?
The overlay panel is rendered without any width or height. The 'height' property is defined in overlayConfig: https://github.com/angular/material2/blob/master/src/cdk/overlay/overlay-config.ts, and is also documented in the the Overlay API
What are the steps to reproduce?
- Go to: https://stackblitz.com/edit/custom-overlay-step-2-mo6xro?file=app/file-preview-overlay.service.ts
- Click on one of the eye icons in the rendered app area.
- Inspect the overlay pane and see that it is receiving the 'max-width' property, but the 'height' property is missing, although it has been defined in the config.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.1.3, cdk 5.0.3, Typescript 2.6.2, windows 10, Chrome v63
Is there anything else we should know?
Your work and effort is much appreciated here!