-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panorama width and height vs. minPitch and maxPitch #1237
Comments
That's an issue with your CSS, not with Pannellum. The viewer has no intrinsic height, so setting the height to auto is the same as setting it to zero height, so of course you can't see it. As far as the CSS goes, the viewer is sized the same way you'd size an empty
Quoting from the documentation for |
Maybe I missed something important. I need to display panoramas both on desktop and smartphone screens. #panorama { How could I get responsiveness otherwise? Thanks, |
As I explicitly told you in my last reply, that sets the viewer height to zero.
It depends on your preferences for how you want it displayed. Using media query rules with explicit heights for different break points is one option. Another option would be to use |
Hi.
I set:
#panorama {
width: 100%;
height: 600px;
}
and it works with a full desktop screen but it leaves a blank white space on the bottom if the screen height is more than 600 pixels
I tried to set: height: auto;
but it does not work in the sense that the panorama is not shown at all.
I noticed another issue with the above panorama settings: reducing the width of the available screen (i.e. using a smartphone), the minPitch parameter setting ("minPitch": -30) seems not to work any longer and the geometry of the shown scene seems to change if compared with the full desktop screen.
Is there anything I missed?
Thanks,
Alex
The text was updated successfully, but these errors were encountered: