Opened 13 years ago

Closed 7 years ago

#8680 closed enhancement (patchwelcome)

Tooltip: allow scrollable content

Reported by: Josh Trutwin Owned by:
Priority: low Milestone: 1.13
Component: Dijit Version: 1.3.0b1
Keywords: dijit.Tooltip scrollable Cc:
Blocked By: Blocking:


This is something that could be done in the 0.4 days but is no longer supported in 1.x. If you created a tooltip styled with overflow:auto; it was possible to mouse over node to open the tooltip, move the mouse over the tooltip content and use the scrollbar. With 1.x when moving the mouse, the tooltip always disappears.

Not sure how useful this is, but I had an old 0.4 app that used this feature and didn't port over.

IRC log:

09:28 < trutwijd_afk> wild_bill: I have a new Tooltip question - is it possible to have a tooltip contents scrollable?

09:29 < wild_bill> trutwijd_afk: yeah, have a tooltip with a <div style="overflow: auto; height: 100px; width; 300px"> in it

09:31 < trutwijd_afk> wild_bill: problem is that when moving the mouse to get to scrollbar it disappears 09:31 < phiggins> ha 09:31 < trutwijd_afk> wild_bill: unless there's a param to click to deactivate?

09:31 < trutwijd_afk> somehow I did this in 0.4 tho!

09:32 < wild_bill> trutwijd_afk: i don't think so, you need to put the <div style="overflow: auto; height: 100px; width; 300px"> INSIDE the tooltip

09:41 < wild_bill> trutwijd_afk: oh wait, i see, yeah, i take it back 09:42 < wild_bill> trutwijd_afk: yeah, we can't support it now

10:21 < trutwijd_afk> wild_bill: what was it in 0.4 that made a scrollable TT possible out of curiousity?

10:33 < wild_bill> trutwijd_afk: oh the code was more complicated, it did hover over either the target node or the tooltip, plus a bunch of timers for when you are moving between the two 10:37 < trutwijd_afk> wild_bill: thanks - should I file a trac to request this feature or? 10:37 < wild_bill> i'm sure there are many tickets about that already but there's probably some reason we did it this way, probably a11y 10:40 < trutwijd_afk> wild_bill: hmm - searched trac for dijit.Tooltip but didn't find

10:43 < wild_bill> trutwijd_afk: hmm, ok maybe there's no ticket. you can file one if you want but i can't say that we'll implement. it was a concious decision to make tooltip very simple.

Change History (3)

comment:1 Changed 13 years ago by bill

Milestone: tbdfuture

comment:2 Changed 9 years ago by bill

Summary: scrollable content in dijit.TooltipTooltip: allow scrollable content

See patch attached to #4284, which moves towards fixing this problem, but might need more code though, since clicking the scrollbar in the tooltip might cause a blur event on the anchor node, causing the tooltip to immediately close.

comment:3 Changed 7 years ago by dylan

Milestone: future1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 5+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.