Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

closes #54 - Issue with globe disappearing on window resize#55

Open
csavage1994 wants to merge 1 commit into
dataarts:masterfrom
csavage1994:master
Open

closes #54 - Issue with globe disappearing on window resize#55
csavage1994 wants to merge 1 commit into
dataarts:masterfrom
csavage1994:master

Conversation

@csavage1994

@csavage1994 csavage1994 commented Jul 6, 2016

Copy link
Copy Markdown

In the master branch of this repo, any time the window is resized the globe will disappear. The issue persisted across Chrome and Safari. There was a PR that was merged which caused this problem, so the changes I made were to revert the faulty code.

@mrdoob

mrdoob commented Aug 19, 2016

Copy link
Copy Markdown
Contributor

How about copying what's done in init()?

w = container.offsetWidth || window.innerWidth;
h = container.offsetHeight || window.innerHeight;

camera.aspect = w / h;
camera.updateProjectionMatrix();
renderer.setSize( w, h );

@geekkid1

Copy link
Copy Markdown

Hmm... Still hangs on loading.gif when I resize the window with these changes.

nitrogl added a commit to nitrogl/webgl-globe that referenced this pull request Aug 7, 2020
from a pull request dataarts#55 devaart
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants