gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

Gridstack with html2canvas

Open renebrain opened this issue 11 years ago • 3 comments

Hi, i am using html2canvas (0.5 alpha) for making a screenshot of my gridstack. html2canvas makes the picture in a hidden iframe. The problem with this is that, although i initialize the Gridstack in the iframe, it still looks scrambled as if it is not initialiazed. I debbuged this state, and the whole gridstack worked, moving and resizing worked (as possible it was with those 1px high elements). But it looked very scrambeled as if this thing wasn't initialized, all widget were 1px high. Is it a problem with hidden elements with gridstack or is it a problem with html2canvas?

Thank you ;)

renebrain avatar Apr 07 '15 07:04 renebrain

I have this exact same problem, I thought it was something I might be doing wrong. html2canvas doesn't always work it seems.

qorrect avatar Apr 11 '15 00:04 qorrect

I have html2canvas with gridstack and it is working fine. I'm not using any iframes, though. Maybe you can find a way to avoid iframes.

derekm avatar Aug 07 '15 21:08 derekm

Iframe is not a problem at all. Just apply an inner div with 100% widthxheight and place your iframe inside. So while dragging or resizing you want have any problems.

Dnia 7 sie 2015 o godz. 23:28 Derek P. Moore [email protected] napisał(a):

I have html2canvas with gridstack and it is working fine. I'm not using any iframes, though. Maybe you can find a way to avoid iframes.

— Reply to this email directly or view it on GitHub.

pySilver avatar Aug 08 '15 14:08 pySilver