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

Make seat chart responsive and scalable #72

Open
efruin opened this issue Apr 26, 2018 · 3 comments
Open

Make seat chart responsive and scalable #72

efruin opened this issue Apr 26, 2018 · 3 comments

Comments

@efruin
Copy link

efruin commented Apr 26, 2018

The seating chart looks fine when rendered on mobile, but it does not auto-scale to fit the size of the screen. This makes it very hard to use on a smartphone. It would be nice if the chart would auto-scale to fit its parent container and then also have the ability to zoom in/out to find the specific seats the user wants.

@mateuszmarkowski
Copy link
Owner

Thank you, this is definitely a good candidate for future development.

@VoordeMensen
Copy link

For what it's worth, we have implemented this by scaling the seatmap-div to the size of the viewport:

scale = Math.min($( window ).width() / ($('#seatmap').width()+30)); //add 30 for margin
$('#seatmap').css('transform', 'scale('+scale+')');
$('#seatmap').css('transform-origin', 'top left');

@salman1karim
Copy link

Did anyone implement responsive seat chart map?

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

No branches or pull requests

4 participants