Skip to content
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

Add Setters for image height and width #146

Closed
harsh183 opened this issue Aug 2, 2017 · 3 comments
Closed

Add Setters for image height and width #146

harsh183 opened this issue Aug 2, 2017 · 3 comments
Milestone

Comments

@harsh183
Copy link

harsh183 commented Aug 2, 2017

Now it's common that we need to change the height and width of the frame. Rather than creating a new photosphere each time, let's have PSV.setHeight() and PSV.setWidth() functions for changing the frame size.

@mistic100
Copy link
Owner

I promote a responsive approach where you should (in CSS) set the viewer full width and height of it's container and it will refresh itself on resize events.

@mistic100 mistic100 added this to the 3.2.4 milestone Aug 3, 2017
@mistic100
Copy link
Owner

PSV.resize({width: '800px', height: '600px'});
PSV.resize({width: '100%'});

@harsh183
Copy link
Author

harsh183 commented Aug 5, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants