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
Panel 1.5.3 (but also tested on 1.4.5)
Plotly 5.24.1 (but also tested on 5.23.0)
Firefox 131.0.3
Ubuntu 24.04.1
Description of expected behavior and the observed behavior
Initialize a Plotly pane with no object, sizing mode of 'stretch_width', and use a viewport update policy (specifically 'throttle' in my case). In another location, change the visibility to True and update the object to a specific Plotly plot.
What should happen: the new plot appears and stretches to the width of the container it's located in.
What is observed to happen: the new plot appears as some default width, and does not stretch to the width of the container.
To work around this, I noticed that setting the object again will then cause the sizing mode to take effect. Specifically, I would set self.plot.object = self.plot.object, and the size will update appropriately.
To see this, in the example below uncomment the final line in the method "update_plot2".
Complete, minimal, self-contained example code that reproduces the issue
ALL software version info
Software Version Info
Description of expected behavior and the observed behavior
Initialize a Plotly pane with no object, sizing mode of 'stretch_width', and use a viewport update policy (specifically 'throttle' in my case). In another location, change the visibility to True and update the object to a specific Plotly plot.
What should happen: the new plot appears and stretches to the width of the container it's located in.
What is observed to happen: the new plot appears as some default width, and does not stretch to the width of the container.
To work around this, I noticed that setting the object again will then cause the sizing mode to take effect. Specifically, I would set self.plot.object = self.plot.object, and the size will update appropriately.
To see this, in the example below uncomment the final line in the method "update_plot2".
Complete, minimal, self-contained example code that reproduces the issue
The text was updated successfully, but these errors were encountered: