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
I have a web application where I open a new window using JS,
window.open (myUrl, '_blank');
to display a plotly graph.
When the graph is rendered, the modebar buttons are skewed (the buttons are large and are rendered across the entire page), as if the CSS for the modebar is not being read.
Note that this is happening in Google Chrome, and when I press F12 to display the Chrome developer Tools, and then hit F12 a second time, the modebar buttons are shown correctly.
Since F12 in Google Chrome will redraw the page, the workaround for this issue seems to be to programmatically force a redraw such that the modebar CSS takes over. However, I have not been able to get this to work.
Note that the action of hitting F12 twice will always fix the issue and the modebar buttons are then rendered correctly.
Any ideas of how to get around this problem? I think it is likely related to the fact that I am displaying the plotly graph in a new window.
I should also mention this problem does not occur with FireFox.
Hi,
I have a web application where I open a new window using JS,
to display a plotly graph.
When the graph is rendered, the modebar buttons are skewed (the buttons are large and are rendered across the entire page), as if the CSS for the modebar is not being read.
Note that this is happening in Google Chrome, and when I press F12 to display the Chrome developer Tools, and then hit F12 a second time, the modebar buttons are shown correctly.
Since F12 in Google Chrome will redraw the page, the workaround for this issue seems to be to programmatically force a redraw such that the modebar CSS takes over. However, I have not been able to get this to work.
Note that the action of hitting F12 twice will always fix the issue and the modebar buttons are then rendered correctly.
Any ideas of how to get around this problem? I think it is likely related to the fact that I am displaying the plotly graph in a new window.
I should also mention this problem does not occur with FireFox.
I have enclosed a screenshot.
Thank you for your help.
plotly-buttons-screenshot.docx
The text was updated successfully, but these errors were encountered: