-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(overlay): add the ability to set the default offsets on FlexibleConnectedPositionStrategy #10555
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 the ability to set the default offsets on FlexibleConnectedPositionStrategy #10555
Conversation
* Sets the default offset for the overlay's connection point on the x-axis. | ||
* @param offset New offset in the X axis. | ||
*/ | ||
withOffsetX(offset: number): this { |
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.
Can we call these withDefaultOffsetX
, withDefaultOffsetY
? That will make it more clear that the offsets aren't additive.
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.
Sure, done.
a33cd33
to
946c117
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 Looks like there are a couple errors, can you rebase and push again? |
…ConnectedPositionStrategy Ports over the functionality that we used to have on the `ConnectedPositionStrategy` where consumers can set a default offset on the position strategy itself, to which it'll fall back if a `ConnectedPosition` doesn't have an offset. This helps avoid repetition in the cases where the consumer wants to have the same offset on all positions.
946c117
to
2a06373
Compare
Those seemed to be coming from master @josephperrott (e.g. the issue with the Browserstack key). I've rebased the PR. |
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. |
Ports over the functionality that we used to have on the
ConnectedPositionStrategy
where consumers can set a default offset on the position strategy itself, to which it'll fall back if aConnectedPosition
doesn't have an offset. This helps avoid repetition in the cases where the consumer wants to have the same offset on all positions.