Skip to content

Commit

Permalink
Fix issue in Record preview image
Browse files Browse the repository at this point in the history
  • Loading branch information
llaske committed Apr 5, 2018
1 parent 9005a92 commit fa7cf4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activities/Record.activity/js/capture-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ define(["activity/recordrtc", "sugar-web/activity/activity", "sugar-web/datastor
img.style.maxHeight = (90 * document.body.clientHeight / 100) + "px";
img.style.maxWidth = (90 * document.body.clientWidth / 100) + "px";
img.style.backgroundSize = "contain";
img.style.height = img.style.maxHeight;
img.style.width = img.style.maxWidth;
img.setAttribute('height', img.style.maxHeight);
img.setAttribute('width', img.style.maxWidth);

return this.generatePopup(fullData, img, originalImage, metadata);
},
Expand Down

0 comments on commit fa7cf4c

Please sign in to comment.