You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Tooltips remain in a fixed position on scrollable pages where the outer style is {"height": "100vh", "overflow": "auto"}. Behaviour occurs regardless of the browser being used.
It's possible other style settings cause this behaviour as well, but this is the style setting which caused the error for me. In this example, removing the styling does not change the look of the app, but it is possible that a height/overflow setting is important for the look of an app and the slider is nested inside of other components.
Minimal example
importdashimportdash_core_componentsasdccimportdash_bootstrap_componentsasdbcimportdash_html_componentsashtmlapp=dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
server=app.serverapp.layout=html.Div(
children=[
dbc.Card("This is a card", style={"padding": "100px"}),
dcc.RangeSlider(
min=0,
max=1,
value=[0, 1],
step=0.01,
tooltip=dict(always_visible=True, placement="bottom"),
),
# Note that these cards exist only to make the page scrollabledbc.Col(
[
dbc.Row(
[dbc.Card("This is another card", style={"padding": "100px"})] *3,
)
]
*10
),
],
# These styles seem to cause the problem, when these styles are removed the error does not occurstyle={
"height": "100vh",
"overflow": "auto",
},
)
if__name__=="__main__":
app.run_server(debug=True)
Tooltips remain in a fixed position on scrollable pages where the outer style is
{"height": "100vh", "overflow": "auto"}
. Behaviour occurs regardless of the browser being used.It's possible other style settings cause this behaviour as well, but this is the style setting which caused the error for me. In this example, removing the styling does not change the look of the app, but it is possible that a
height
/overflow
setting is important for the look of an app and the slider is nested inside of other components.Minimal example
Requirements
Screen recording
The text was updated successfully, but these errors were encountered: