slowe / VirtualSky

A browser-based planetarium that can be customised and embedded in web pages.
http://slowe.github.io/VirtualSky/
245 stars 94 forks source link

Canvas shape changes in different size #63

Closed techyroots closed 4 years ago

techyroots commented 5 years ago

Hi,

I have found that changing the size of the window disturbs the shape of the canvas and slightly the bg color too, why it's happening,

below is the screenshot of before and after changing the size of the window

before : Screenshot 2019-09-13 at 10 30 51 PM

after: Screenshot 2019-09-13 at 10 30 39 PM

I really don't know. Can anyone help me here with some thoughts? Will really appreciate :)

slowe commented 5 years ago

@techyroots Your second screenshot appears to have the "atmosphere" turned on. The first doesn't. I don't know why it is changing as you change the window size. I can't replicate this. Do you have an online example where this happens?

On window resize, the canvas may be adapting to the size of the container you've given it.