slider tooltip.always_visible doesn't position properly
See original GitHub issueIf I put a slider into a div that has overflow-y=scroll, then the tooltip doesn’t scoll with the slider
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash(
__name__,
)
app.layout = html.Div([
html.Div([
html.Div(dcc.Slider(
min=0,
max=100,
value=65,
tooltip={'always_visible':True, 'placement':'bottom'}
),
style=dict(height=100))
]*5,
style=dict(maxHeight=300, overflowX='scroll'))
])
if __name__ == '__main__':
app.run_server(debug=True)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
material slider and range slider tooltip not always visible
There was no public API to keep the Tooltip always visible using the app:labelBehavior attribute. Below is a workaround using a Reflection:.
Read more >Tooltip – Carbon Design System
Upon opening, tooltips can detect the edges of the browser to properly be placed in view so the container does not get cutoff....
Read more >Tooltip | Components - BootstrapVue
Easily add tooltips to elements or components via the component or v-b-tooltip directive.
Read more >Slider tooltip in modal scrolling with page #13418 - Issuehunt
Create a modal, make height larger then screen size so you are able to scroll, create a slider with the tool tip always...
Read more >Slider – amCharts 4 Documentation
Slider. Type class. Creates a slider - a version of scrollbar with just one grip. ... Indicates if this element should display a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since dcc.Slider is calling the react tooltip API, what would be the correct container to set for the tooltip when using getTooltipContainer?
I’m currently taking a look at this. This is a non-exhaustive list of some things I’m in the process of figuring out:
react-entry-point
div and have the following style:overflow=y
style?rc-slider
element?getPopupContainer
prop to their slider, which binds the tooltip todocument.body()
dcc_slider
to implement the desired behavior - patch dcc_slider or migrate it entirely to another implementation?getTooltipContainer
prop ofreact-component/tooltip
whichreact-component/slider
depends on to set the DOM element that the tooltip should be a child of? From: https://github.com/react-component/tooltip/issues/41#issuecomment-298435904