Skip to content

Conversation

@Parvinmh
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Oct 31, 2025

@Parvinmh is attempting to deploy a commit to the Pean Team on Vercel.

A member of the Team first needs to authorize it.

@Parvinmh
Copy link
Contributor Author

#2099

@Parvinmh Parvinmh added the bug label Nov 25, 2025
| "bottom-middle-aligned";
| "bottom-middle-aligned"
| "bottom-right-aligned";
export type TooltipPosition = TooltipBasePosition | TooltipAlignment;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we introducing a new type for this? Why not keep all under the same type?

? (containerOrWindow as HTMLElement).clientHeight
: (containerOrWindow as { width: number; height: number }).height;
const tW = tooltipWidth + 12;
const tH = tooltipHeight + 12;
Copy link
Contributor

Choose a reason for hiding this comment

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

where number 12 is coming from?

autoPosition: boolean;
/* Precedence of positions, when auto is enabled */
positionPrecedence: TooltipPosition[];
positionPrecedence: TooltipBasePosition[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we changing this type?

* @returns Element's position info
* Returns all scrollable parents up to document root
*/
function getScrollParents(el: HTMLElement): HTMLElement[] {
Copy link
Contributor

Choose a reason for hiding this comment

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

How this was handled previously?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants