Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize widgets when resizing cells or document #157

Merged
merged 2 commits into from
Jan 1, 2022

Conversation

hbcarlos
Copy link
Member

@hbcarlos hbcarlos commented Dec 21, 2021

Resize widgets when resizing cells or document

This PR improves the UI/UX experience but has a downside in performance.

Every time the user resizes a cell, we propagate the resize event to the widget inside the cell. This rerenders the widget. Another possibility would be to propagate the event when the resize stops or debouce the propagation to not rerender the widget so many times.

Regarding the document, this PR listens for a resize event on the widget and, when the resize stops, propagates the event to every widget rendered in the layout.

Also added a new GitHub action to comment the binder link for each PR.

plotly-example.mp4

@hbcarlos hbcarlos self-assigned this Dec 21, 2021
@hbcarlos hbcarlos added enhancement New feature or request jupyterlab-extension The Voila Gridstack extension for JupyterLab labels Dec 21, 2021
@hbcarlos hbcarlos merged commit afe5b68 into voila-dashboards:main Jan 1, 2022
@hbcarlos hbcarlos deleted the issues branch January 1, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jupyterlab-extension The Voila Gridstack extension for JupyterLab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant