plotly / dash-bio

Open-source bioinformatics components for Dash
https://dash-gallery.plotly.host/Portal/?search=Bioinformatics
MIT License
529 stars 194 forks source link

callback of AlignmentChart is unable to change page hight #706

Open eporetsky opened 2 years ago

eporetsky commented 2 years ago

I have a callback function that generates an alignment file and creates AlignmentChart based on it and it is working perfectly well. The issue is that the height variable seems to persist within the session and to actually change the height parameter I have to refresh the flask app, even with the default height settings. In other words, when I create an AlignmentChart with X genes, the callback creates AlignmentChart with nicely spaced rows but if I try to update the AlignmentChart with 10X genes it squeezes it into the same height as if it was X genes. On the other hand, if I refresh the page and create an AlignmentChart with 10X genes it spreads out the rows nicely but if, within the same session, I use X genes it spreads them out over an area equivalent to the 10X genes.

I hope that there's an easy fix to it, let me know if I should provide code. It didn't seem like something I can workout on my side. Thank you so much!