Skip to content

CDK Overlay is ignoring 'height' and 'width' configs #9715

Closed
@AsafAgranat

Description

@AsafAgranat

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?

  1. Go to: https://stackblitz.com/edit/custom-overlay-step-2-mo6xro?file=app/file-preview-overlay.service.ts
  2. Click on one of the eye icons in the rendered app area.
  3. 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!

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions