Skip to content

fix(global-position-strategy): ignoring width and height from OverlayConfig #9774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2018

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 4, 2018

  • Switches to using the width and height from the OverlayConfig, rather than the properties on the GlobalPositionStrategy.
  • Deprecates the GlobalPositionStrategy.width and GlobalPositionStrategy.height methods in favor of passing the dimensions through the config.
  • Reworks the GlobalPositionStrategy testing setup to make it less prone to breaking if any of the OverlayRef internals change.

Fixes #9715.

@crisbeto crisbeto requested a review from jelbourn as a code owner February 4, 2018 11:10
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 4, 2018
@@ -86,14 +96,14 @@ export class GlobalPositionStrategy implements PositionStrategy {
/**
* Sets the overlay width and clears any previously set width.
* @param value New width for the overlay
* @deprecated Pass the `width` through the `OverlayConfig`.
* @deletion-target 6.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will have to be 7.0; any deprecated API has to stick around for at least one full major release cycle before being removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

…Config

* Switches to using the `width` and `height` from the `OverlayConfig`, rather than the properties on the `GlobalPositionStrategy`.
* Deprecates the `GlobalPositionStrategy.width` and `GlobalPositionStrategy.height` methods in favor of passing the dimensions through the config.
* Reworks the `GlobalPositionStrategy` testing setup to make it less prone to breaking if any of the `OverlayRef` internals change.

Fixes angular#9715.
@crisbeto crisbeto force-pushed the 9715/global-overlay-width-height branch from 2d4c1d9 to acd393a Compare February 5, 2018 17:36
@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Feb 5, 2018
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Feb 6, 2018
@mmalerba mmalerba merged commit 04854fe into angular:master Feb 8, 2018
mmalerba pushed a commit that referenced this pull request Feb 8, 2018
…Config (#9774)

* Switches to using the `width` and `height` from the `OverlayConfig`, rather than the properties on the `GlobalPositionStrategy`.
* Deprecates the `GlobalPositionStrategy.width` and `GlobalPositionStrategy.height` methods in favor of passing the dimensions through the config.
* Reworks the `GlobalPositionStrategy` testing setup to make it less prone to breaking if any of the `OverlayRef` internals change.

Fixes #9715.
tinayuangao pushed a commit that referenced this pull request Feb 9, 2018
…Config (#9774)

* Switches to using the `width` and `height` from the `OverlayConfig`, rather than the properties on the `GlobalPositionStrategy`.
* Deprecates the `GlobalPositionStrategy.width` and `GlobalPositionStrategy.height` methods in favor of passing the dimensions through the config.
* Reworks the `GlobalPositionStrategy` testing setup to make it less prone to breaking if any of the `OverlayRef` internals change.

Fixes #9715.
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDK Overlay is ignoring 'height' and 'width' configs
4 participants