-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(scrolling): add dedicated module for CdkScrollable #19064
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
Conversation
405fc96
to
b904fe8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@crisbeto passes presubmit, just needs rebase |
This is something that originally came up in angular#18082 and has been coming up as issues on GitHub. Some of our overlay-based components depend on `CdkScrollable` to tell them when to reposition, but the problem is that it's not very easy to consume, because: 1. It has an attribute selector so if it doesn't match, nothing will throw an error. 2. It has to be brought in through the `ScrollingModule` into the proper user module. The `ScrollingModule` is somewhat large, because it contains other things like virtual scrolling. These changes address the issues by adding a small module dedicated only to `CdkScrollable`, and exporting the module through the relevant Material components.
Rebased @jelbourn. |
b904fe8
to
415a407
Compare
This is something that originally came up in #18082 and has been coming up as issues on GitHub. Some of our overlay-based components depend on `CdkScrollable` to tell them when to reposition, but the problem is that it's not very easy to consume, because: 1. It has an attribute selector so if it doesn't match, nothing will throw an error. 2. It has to be brought in through the `ScrollingModule` into the proper user module. The `ScrollingModule` is somewhat large, because it contains other things like virtual scrolling. These changes address the issues by adding a small module dedicated only to `CdkScrollable`, and exporting the module through the relevant Material components.
…19064) This is something that originally came up in angular#18082 and has been coming up as issues on GitHub. Some of our overlay-based components depend on `CdkScrollable` to tell them when to reposition, but the problem is that it's not very easy to consume, because: 1. It has an attribute selector so if it doesn't match, nothing will throw an error. 2. It has to be brought in through the `ScrollingModule` into the proper user module. The `ScrollingModule` is somewhat large, because it contains other things like virtual scrolling. These changes address the issues by adding a small module dedicated only to `CdkScrollable`, and exporting the module through the relevant Material components.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This is something that originally came up in #18082 and has been coming up as issues on GitHub. Some of our overlay-based components depend on
CdkScrollable
to tell them when to reposition, but the problem is that it's not very easy to consume, because:ScrollingModule
into the proper user module. TheScrollingModule
is somewhat large, because it contains other things like virtual scrolling.These changes address the issues by adding a small module dedicated only to
CdkScrollable
, and exporting the module through the relevant Material components.Note: I'm setting this as a P2, because it should be relatively safe to land and we get related issue reports about it once in a while.