almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Canvas width is calculated wrongly when browser is zoomed #4138

Open papaiatis opened 6 years ago

papaiatis commented 6 years ago

I have a two column flexbox layout, in which the left column is some menu/property editor, and the right column is where the vis network is drawn.

Everything works fine when the browser is in normal zoom (100%) or is set smaller (<100%). But when the zoom is above 100%, the canvas gets an incorrect width and the layout gets broken.

Here's a simple demo: https://jsfiddle.net/2w0smceq/

Any help would be appreciated.