Commit b1e32a1849cdf63c46dbed52e5dec892b6ebcf9d

Authored by Amrita Vishnoi
2 parents 80b1a2bd 1dd17523

Merge branch 'ciissueie' into Develop

400-SOURCECODE/AIAHTML5.Web/libs/html2canvas.js
... ... @@ -2855,8 +2855,16 @@ _html2canvas.Renderer.Canvas = function(options) {
2855 2855 newCanvas.width = Math.ceil(bounds.width);
2856 2856 newCanvas.height = Math.ceil(bounds.height);
2857 2857 ctx = newCanvas.getContext("2d");
2858   -
2859   - ctx.drawImage(canvas, bounds.left, bounds.top, bounds.width, bounds.height, 0, 0, bounds.width, bounds.height);
  2858 + if (/*@cc_on!@*/false || !!document.documentMode) {
  2859 +
  2860 + var imgData = canvas.getContext("2d").getImageData(bounds.left, bounds.top, bounds.width, bounds.height);
  2861 + ctx.putImageData(imgData, 50, 0);
  2862 + }
  2863 + else {
  2864 +
  2865 + ctx.drawImage(canvas, bounds.left, bounds.top, bounds.width, bounds.height, 0, 0, bounds.width, bounds.height);
  2866 + }
  2867 +
2860 2868 canvas = null;
2861 2869 return newCanvas;
2862 2870 }
... ...