Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

inline middleware #15

Open
atomiks opened this issue Dec 4, 2021 · 0 comments
Open

inline middleware #15

atomiks opened this issue Dec 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@atomiks
Copy link
Owner

atomiks commented Dec 4, 2021

Problem

When wanting to position a floating element on an inline element that spans over two or more lines, the positioning is not desirable because getBoundingClientRect() measures over the whole box, not each individual inline rect.

Solution

It's possible to do this via a Virtual Element but a middleware would be better.

e.g. https://github.com/atomiks/tippyjs/blob/60aee16c934fc861569f84a37c6a1a7f42a33fa0/src/plugins/inlinePositioning.ts#L112

@atomiks atomiks added the enhancement New feature or request label Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant