Skip to content

Tooltip position is not calculated correctly in modal and tooltip is cut off #85

@GBora

Description

@GBora

When I use react-tooltip-lite in a modal somehow the left is no calculated correctly and the tooltip is rendered with part of it cutoff.

This only happens when I use it in desktop in a modal, if the page has a similar size due to being on mobile the tooltip is rendered perfectly.

Not sure I think it takes into account the size of the entire screen so when it thinks it has a large desktop screen it renders itself beyond the edges of the modal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions