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

feat(overlay): add providers for overriding the scroll strategies per component #5134

Merged
merged 1 commit into from Jul 17, 2017

Conversation

crisbeto
Copy link
Member

Adds providers to the autocomplete, connected overlay, datepicker, dialog, menu, select and tooltip components, that allow for the default scroll strategy to be overwritten.

Fixes #4093.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 14, 2017
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
Copy link
Member

Just needs rebase

@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from 7d682fd to b89d167 Compare June 15, 2017 18:40
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Jun 15, 2017
@kara kara added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker labels Jun 16, 2017
@kara kara assigned crisbeto and unassigned jelbourn Jun 16, 2017
@kara
Copy link
Contributor

kara commented Jun 16, 2017

@crisbeto Can you rebase?

@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from b89d167 to d4c73e5 Compare June 17, 2017 12:42
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Jun 17, 2017

/** @docs-private */
export function MD_AUTOCOMPLETE_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay) {
return () => overlay.scrollStrategies.reposition();
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't better to handle to case of IOS too (related to #5187)

return () => platform.IOS ? overlay.scrollStrategies.block() : overlay.scrollStrategies.reposition();

@jelbourn jelbourn added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jun 19, 2017
@jelbourn
Copy link
Member

Caretaker note: someone inside google is extending MdTooltip so we need to update the constructor params for them

@jelbourn
Copy link
Member

@crisbeto can you rebase?

@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from d4c73e5 to 778ca51 Compare June 22, 2017 17:25
@crisbeto
Copy link
Member Author

Rebased @jelbourn.

@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from 778ca51 to 7b169e8 Compare June 23, 2017 17:33
@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from 7b169e8 to fc7823d Compare July 8, 2017 08:37
@jelbourn
Copy link
Member

@crisbeto can you rebase again?

@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from fc7823d to 5bad898 Compare July 14, 2017 22:40
@crisbeto
Copy link
Member Author

Rebased @jelbourn.

@jelbourn
Copy link
Member

@crisbeto appears to be some lint errors now

… component

Adds providers to the autocomplete, connected overlay, datepicker, dialog, menu, select and tooltip components, that allow for the default scroll strategy to be overwritten.

Fixes angular#4093.
@crisbeto crisbeto force-pushed the 4093/scroll-strategy-providers branch from 5bad898 to 100e123 Compare July 17, 2017 16:47
@crisbeto
Copy link
Member Author

Sorted out the linting error @jelbourn.

@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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overlay-based components should handle page scroll gracefully
5 participants