vasturiano / react-globe.gl

React component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/react-globe.gl/example/world-population/
MIT License
866 stars 155 forks source link

Problem with width&height config #96

Open 17x opened 2 years ago

17x commented 2 years ago

While i set width and height on mobile browser(both emulator and real device).

<Globe width={1280} height={720} ...restConfigs />

this make the global doesn't center on it's container.

WX20220903-132516

After i delete size configs, the global back to center of screen

<Globe ...restConfigs />

aaa

vasturiano commented 2 years ago

@17x from your image it looks like your (emulated) screen size is 844x390. Therefore if you set your component size to be larger than this, like 1280x720 it is expected to overflow, and end up off center.