How can get screenshoot when position of div is absolute?
I'm getting error: "Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value"
I want to add png images, one is up to the other, so I used z-index
My html:
<div id="divFrame">
<img id="frame">
<div id="zoom" class="zoomProps" ><img id="polaroid"/> </div>
</div>
CSS:
.zoomProps {
top: 0;
left: 0;
width: 100%;
z-index: 2;
position: absolute;
}
#frame {
left: 0;
top: 0;
width: 100%;
z-index: 3;
pointer-events: none;
position: absolute;
}
JQuery:
html2canvas(document.getElementById('divFrame'), {
onrendered: function(canvas) {
var img = canvas.toDataURL();
$("#yemekPageImgFullScreen").attr('src', img);
$("#popupBasic").popup();
$("#popupBasic").popup('open');
}
});