Skip to content

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

Merged
jelbourn merged 1 commit into
angular:masterfrom
crisbeto:4093/scroll-strategy-providers
Jul 17, 2017
Merged

jelbourn merged 1 commit into
angular:masterfrom
crisbeto:4093/scroll-strategy-providers

Conversation

@crisbeto

Copy link
Copy Markdown
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

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jelbourn

Copy link
Copy Markdown
Contributor

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

kara commented Jun 16, 2017

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
Contributor

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

@jelbourn

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
Member Author

Rebased @jelbourn.

@jelbourn

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Member Author

Sorted out the linting error @jelbourn.

@angular-automatic-lock-bot

Copy link
Copy Markdown

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