Skip to content

feat(overlay): allow for Directionality instance to be passed in #11411

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
May 23, 2018

Conversation

crisbeto
Copy link
Member

Allows for a Directionality instance to be passed in to the OverlayRef, in addition to a static Direction. Using a Directionality has the advantage of not having to keep the overlay's direction in sync manually with whatever component triggered it. It also gets rid of some annoying null checks.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 19, 2018
/**
* Layout direction of the overlay panel.
*/
get direction(): Direction {
Copy link
Member

Choose a reason for hiding this comment

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

Could we make this a function getDirection() since setDirection is already there? I think that's more clear than having a separate readonly property

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, done.

@crisbeto crisbeto force-pushed the overlay-directionality branch from 50cb111 to e427327 Compare May 22, 2018 19:41
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels May 22, 2018
@ngbot
Copy link

ngbot bot commented May 22, 2018

Hi @crisbeto! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

Allows for a `Directionality` instance to be passed in to the `OverlayRef`, in addition to a static `Direction`. Using a `Directionality` has the advantage of not having to keep the overlay's direction in sync manually with whatever component triggered it. It also gets rid of some annoying null checks.
@crisbeto crisbeto force-pushed the overlay-directionality branch from e427327 to 129989e Compare May 23, 2018 20:27
@mmalerba mmalerba merged commit be577b1 into angular:master May 23, 2018
@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 9, 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: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants