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

When resetting layot of FastGridTemplate the plots do not reset. #2576

Closed
MarcSkovMadsen opened this issue Jul 27, 2021 · 0 comments · Fixed by #2578
Closed

When resetting layot of FastGridTemplate the plots do not reset. #2576

MarcSkovMadsen opened this issue Jul 27, 2021 · 0 comments · Fixed by #2578
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Jul 27, 2021

I'm on Panel 0.12.0

I'm trying to make a video tutorial for the FastGridTemplate. But I can see when clicking the reset layout button the plots do not reset. They keep the size the had before.

Before Reset

image

After Reset

image

Solution

Make sure any components relayout after the Grid Layout has been reset.

Additional Context

Technically it would be easy to just reload the page. I would not know how to trigger a relayout of any model in the page.

@MarcSkovMadsen MarcSkovMadsen added TRIAGE Default label for untriaged issues type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels Jul 27, 2021
@MarcSkovMadsen MarcSkovMadsen added this to the v0.12.1 milestone Jul 27, 2021
philippjfr pushed a commit that referenced this issue Aug 2, 2021
* Reset Models/ Components when resetting layout (#2576)

* simplify refresh code

* dispatch resize event instead of reloading

Co-authored-by: Marc Skov Madsen <masma@orsted.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant