question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can one make a scrollable Tippy?

See original GitHub issue

How can one make the content of a Tippy scrollable if the parent/viewport doesn’t allow enough space for the Tippy to display in full?

Here’s a Codepen

ok

not-ok

Setting a CSS max-height would work, but not with dynamic heights such as the viewport.

Thanks for everything you do for this lib, it is awesome!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
alexnaultcommented, Jun 10, 2019

It’s pretty limited, but here goes: https://codepen.io/anault/pen/WqeaYZ (currently does not support flip, other placements, etc.)

@atomiks Would it be interesting to natively support this kind of functionality in Tippy?

1reaction
atomikscommented, Jun 7, 2020

I don’t think so, isn’t it an inherent problem regarding 2D space haha.

In any case you can use https://www.npmjs.com/package/popper-max-size-modifier to do the size detection for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Misc | Tippy.js
A simple, easy-to-use vanilla JavaScript library for creating tooltips and popovers to use in web sites and apps. The flat-level option API makes...
Read more >
Scrollable Tippy Solution 1 - CodePen
Adding Classes. In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template....
Read more >
How can i show scroll on hover in tippy js? - Stack Overflow
I am using tippy.js https://atomiks.github.io/tippyjs/ for showing tooltip on hover inside my full calendar. Now everything is fine but i am ...
Read more >
tooltips in scrollable container - with tippy.js - Plunker
querySelectorAll('li')] for (let i=0; i<10; i++) { tippy(lis[i], ... section { width: 200px; height: 200px; overflow-y: scroll; box-shadow: 0 0 3px black; } ......
Read more >
Cacoo tip: How to scroll horizontally on diagrams - YouTube
Do you know that you can scroll your diagram horizontally by holding the Shift key while scrolling your mouse wheel?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found