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
Python version : 3.11.4 (main, Aug 7 2023, 10:37:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]
IPython version : 8.14.0
Tornado version : 6.3.2
Bokeh version : 3.2.1
BokehJS static path : /Users/username/.pyenv/versions/3.11.4/envs/ah-premium/lib/python3.11/site-packages/bokeh/server/static
node.js version : v20.5.0
npm version : 9.8.0
Operating system : macOS-13.5-arm64-arm-64bit
Browser name and version
Firefox 116.0.2 Chrome 115.0.5790.170
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
When a Bokeh Datatable - served from a different origin - is embedded in an iframe, selecting a row should not scroll the the iframe
Observed behavior
On selecting a row, if the datatable header is not visible on screen, the iframe jumps up
Example code
fromdatetimeimportdatefromrandomimportrandintfrombokeh.ioimportshowfrombokeh.modelsimportColumnDataSource, DataTable, DateFormatter, TableColumnN=28data=dict(
dates=[date(2014, 3, i+1) foriinrange(N)],
downloads=[randint(0, 100) foriinrange(N)],
)
source=ColumnDataSource(data)
columns= [
TableColumn(field="dates", title="Date", formatter=DateFormatter()),
TableColumn(field="downloads", title="Downloads"),
]
data_table=DataTable(source=source, columns=columns, height=N*28,
scroll_to_selection=False,
sizing_mode='stretch_width',)
# Stretch width just so the table is easier to see.# Scroll to selection true vs false has no effect.save(data_table, title='test', filename='testtable.html')
# Now embed this in an iframe like (900px just makes it easier to see)# <iframe src="https://testtable.pages.dev/testtable" style="width:100%;height:900px;"></iframe># The URL points to the example above
Stack traceback or browser console output
No response
Screenshots
The text was updated successfully, but these errors were encountered:
Software versions
Python version : 3.11.4 (main, Aug 7 2023, 10:37:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]
IPython version : 8.14.0
Tornado version : 6.3.2
Bokeh version : 3.2.1
BokehJS static path : /Users/username/.pyenv/versions/3.11.4/envs/ah-premium/lib/python3.11/site-packages/bokeh/server/static
node.js version : v20.5.0
npm version : 9.8.0
Operating system : macOS-13.5-arm64-arm-64bit
Browser name and version
Firefox 116.0.2 Chrome 115.0.5790.170
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
When a Bokeh Datatable - served from a different origin - is embedded in an iframe, selecting a row should not scroll the the iframe
Observed behavior
On selecting a row, if the datatable header is not visible on screen, the iframe jumps up
Example code
Stack traceback or browser console output
No response
Screenshots
The text was updated successfully, but these errors were encountered: