Open lothas opened 3 years ago
Thanks for the report. Seems like a Chrome bug to me. Here is a codepen. Should refresh few times to see the problem with the right margin. It might be related to loading the fonts & computing bounding boxes for the text.
Thanks @archmoj. I tried the codepen but it doesn't work for me (the plot is displayed but it's not responsive). I tried it both in Chrome and Firefox on Windows 10.
I'm working on a web-app that should run in desktop and mobile. I've tested the app in Firefox and Chrome and noticed that the width (or right margin) of the plot is wrongly initialized.
The problem: The plot is too big when the page is initially loaded. After resizing the browser (responsive layout), the plot is updated and suddenly fits the screen properly. I've added a
restyle
call to my script and that improves things a bit, but not completely.The app is a Flask app (the snippet is from a jinja2 page) and I'm using Bootstrap for the front-end.
I've attached a file with the contents of
graph
. graph.txtHere are some screenshots: After slightly resizing the page: