Skip to content
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

fix(menu): reposition menu if it would open off screen #1761

Merged
merged 1 commit into from
Nov 16, 2016

Conversation

kara
Copy link
Contributor

@kara kara commented Nov 7, 2016

Closes #1540.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 7, 2016
@kara kara added the in progress This issue is currently in progress label Nov 7, 2016
@kara kara force-pushed the menu-position branch 3 times, most recently from b93d246 to d9b5bd5 Compare November 7, 2016 22:26
@kara kara removed the in progress This issue is currently in progress label Nov 7, 2016
/** Converts the designated point into an OriginConnectionPosition. */
private _originPos(x: HorizontalConnectionPos,
y: VerticalConnectionPos): OriginConnectionPosition {
return {originX: x, originY: y} as OriginConnectionPosition;
Copy link
Member

Choose a reason for hiding this comment

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

Is the as OriginConnectionPosition necessary? The types should be structurally identical.

@kara kara added the in progress This issue is currently in progress label Nov 8, 2016
@kara
Copy link
Contributor Author

kara commented Nov 8, 2016

Realized I need to change the animation origin point if a fallback is used, so this will need some more work.

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

*/
private _subscribeToPositions(position: ConnectedPositionStrategy): void {
this._positionSubscription = position.onPositionChange.subscribe(
(change: ConnectedOverlayPositionChange) => {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't need the type here

@kara kara added the action: merge The PR is ready for merge by the caretaker label Nov 16, 2016
@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 6, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should menu expand the page when positioned in the bottom?
3 participants