VaxGame icon indicating copy to clipboard operation
VaxGame copied to clipboard

In Chrome graph does not fit to browser window

Open Alexander-Minyushkin opened this issue 10 years ago • 3 comments

Alexander-Minyushkin avatar Jul 31 '14 09:07 Alexander-Minyushkin

If you reduce the width of the browser window, the graph will reduce in size to fit - it seems to be setting the size from the width and/or screen height, rather than window viewport height (although viewing in fullscreen mode does not help).

HamboneCoder avatar Aug 01 '14 15:08 HamboneCoder

I'm also seeing this issue. Here's how it looks/adjusts on my machine: vax

nickom avatar Aug 03 '14 20:08 nickom

Setting width and height with window.innerWidth and window.innerHeight on load and resize should do the trick, see: https://github.com/salathegroup/VaxGame/blob/master/app/assets/javascripts/game.js#L586-L614

PeterTheOne avatar Jun 26 '17 15:06 PeterTheOne