-
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(overlay): add support for automatically setting the transform-origin based on the current position #10868
feat(overlay): add support for automatically setting the transform-origin based on the current position #10868
Conversation
770b747
to
3a71f1a
Compare
* @param selector CSS selector that will be used to find the target | ||
* elements onto which to set the transform origin. | ||
*/ | ||
withTransformOriginOn(selector: string): 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.
Add documentation for this in overlay.md
?
3a71f1a
to
bffeaff
Compare
Sorry for the delay @jelbourn, it seems like I missed the notification. I've rebased the branch and have addressed the feedback. |
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
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
1 similar comment
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
…igin based on the current position Currently we have a handful of components where we set the `transform-origin` depending on the position of their overlay. This ends up being a fair bit of similar logic that is scattered across the different components. These changes consolidate that logic into an option on the `FlexibleConnectedPositionStrategy`.
bffeaff
to
4883a56
Compare
* @param delay Amount of milliseconds to the delay showing the tooltip. | ||
*/ | ||
show(position: TooltipPosition, delay: number): void { | ||
show(delay: number): void { |
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.
This is a breaking API change; causing some issues trying to sync
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.
I can see how it could break somebody, but this is on a private component that is only exposed through an underscored property.
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.
It's from a team that's extending the tooltip. I guess I can update them.
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. |
Currently we have a handful of components where we set the
transform-origin
depending on the position of their overlay. This ends up being a fair bit of similar logic that is scattered across the different components. These changes consolidate that logic into an option on theFlexibleConnectedPositionStrategy
.