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
Hi is there is a way to dynamically size the Molecule3dViewer component? In the docs it says that the height and width attribute should be a number (in px) but is it possible to dynamically resize it to the size of the container. For example, I tried something like this:
However, when I try to update it again using the same method. It gives a blank screen and I can't load any more pdbs. Loading a new pdb works great when I don't include the width parameter or if I set it to an integer.
It's not a super big bug, but I think it would be nice to be able to dynamically resize the viewer for different screen sizes.
python version 3.10.0
dash version 2.9.3
dash-bio version 1.0.2
dash-bootstrap-components version 1.4.1
The text was updated successfully, but these errors were encountered:
Hi is there is a way to dynamically size the Molecule3dViewer component? In the docs it says that the height and width attribute should be a number (in px) but is it possible to dynamically resize it to the size of the container. For example, I tried something like this:
This works when I initially load the app and when I update the modelData with a first pdb file using something like this:
However, when I try to update it again using the same method. It gives a blank screen and I can't load any more pdbs. Loading a new pdb works great when I don't include the
width
parameter or if I set it to an integer.It's not a super big bug, but I think it would be nice to be able to dynamically resize the viewer for different screen sizes.
python version 3.10.0
dash version 2.9.3
dash-bio version 1.0.2
dash-bootstrap-components version 1.4.1
The text was updated successfully, but these errors were encountered: