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

Issue on Using Library with Raphael setViewBox() and setSize() #17

Open
Behseini opened this issue May 22, 2014 · 0 comments
Open

Issue on Using Library with Raphael setViewBox() and setSize() #17

Behseini opened this issue May 22, 2014 · 0 comments

Comments

@Behseini
Copy link

Hi,
I need to make a scalable paper in order to have a responsive presentation on my page.To get this I used Raphaël.js setViewBox() and setSize() Methods. As you can see from the below code I set the paper.setSize('100%', '100%'); which is causing issue on the paper. Can you please let me know how I can fix this?

var w = 500;
var h = 500;
var paper = Raphael("canvas");
paper.canvas.style.backgroundColor = '#ccc';
paper.setViewBox(0,0,w,h,true);
paper.setSize('100%', '100%');

panZoom = paper.panzoom({ initialZoom: 0, initialPosition: { x: 0, y: 0} });
panZoom.enable();
paper.safari();
............

Thanks

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

1 participant