-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(core): add scrollable view properties to connected pos strategy #2259
Conversation
7cfc35f
to
67e0684
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.
Overall looks good, but I'm worried about releasing this in beta without the throttle
limiter
} from './connected-position'; | ||
import {Subject} from 'rxjs/Subject'; | ||
import {Observable} from 'rxjs/Observable'; | ||
import {Scrollable} from '../scroll/scrollable'; | ||
|
||
export type ElementBoundingPositions = { |
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.
Add description for what this type is used for?
let strategy = this._overlay.position().connectedTo(this._elementRef, origin, position); | ||
strategy.withScrollableContainers(this._scrollDispatcher.getScrollContainers(this._elementRef)); | ||
strategy.onPositionChange.subscribe((change: ConnectedOverlayPositionChange) => { |
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.
The type should be inferred here, so you should be able to just do
strategy.onPositionChange.subscribe(change => {
// ...
});
a8c0bbd
to
d670faa
Compare
Removed its usage in tooltip and sidenav until we optimize the number of scroll notifications with a throttle |
77bb07e
to
ac2f572
Compare
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. |
Uses new Scrollable changes from #2188. Adds a set of properties to the change position event from the connected position strategy.
Still working on writing the tests for the connected position strategy but wanted to put this out for review to get it looked at ahead of time since beta is on Tuesday and we want this in there.