/
githubmirror
/
scikit-learn
Обзор
Документация
Войти
/
githubmirror
/
scikit-learn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
doc/js/scripts/sg_plotly_resize.js
10 строк
455 B
Jérôme Dockès
DOC Improve resizing of plotly parallel coord plots (#30778)
06 фев 2025, 22:21
Не верифицирован
06 фев 2025, 22:21
4f29d4e
Код
Авторство
О чём код?
// Related to https://github.com/scikit-learn/scikit-learn/issues/30279 // There an interaction between plotly and bootstrap/pydata-sphinx-theme // that causes plotly figures to not detect the right-hand sidebar width // Plotly figures are responsive, this triggers a resize event once the DOM has // finished loading so that they resize themselves. document.addEventListener("DOMContentLoaded", () => { window.dispatchEvent(new Event("resize")); });