Closed yuri-kulikov closed 4 years ago
Hi Yuri, thanks for reporting this issue! Also thanks for the GIF, very helpful ππΌ
Although I only came across scenario's where the toggle element is always smaller then the layer, I definitely think we should support cases where the trigger element is bigger than the layer. What is the behaviour you're expecting? Personally, I think the example below looks the nicest:
@everweij, thanks for the quick response!
Personally, I think the example below looks the nicest: \
Yeah, that's what I think I'd expect to see π
One more thought (probably obvious π ): I feel that this solution can be a bit tricky, because if the trigger is small again and we use the βdiagonalβ anchor and align the arrow to the center of the tooltip, there may be the opposite problem.
I've just pushed v1.6.0, which should fix this issue. Can you check / confirm whether this works for you?
π Yeap, it works for me!
But I've found an issue:
Ah snap, good catch! π Jup, need to fix that!
I think I've fixed it :)
Thank you, works great! π
The arrow position is not aligned to the tooltip if the toggle element is too large and we use a corner anchor: