You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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%');
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
The text was updated successfully, but these errors were encountered: