Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15512 from huchengtw-moz/gallery/Bug_960215-galle…
Browse files Browse the repository at this point in the history
…ry-open-activity-rotation

Bug 960215 - [B2G][Messages] Image-attachment does not fill the screen i..., r=djf
  • Loading branch information
huchengtw-moz committed Feb 18, 2014
2 parents 988c320 + 44a4a3d commit 53672e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/gallery/js/open.js
Expand Up @@ -53,6 +53,8 @@ window.addEventListener('localized', function() {
frame.container.addEventListener('pan', handlePan);
frame.container.addEventListener('swipe', handleSwipe);

window.addEventListener('resize', frame.resize.bind(frame));

// Report errors if we're passed an invalid image
frame.onerror = function invalid() {
displayError('imageinvalid');
Expand Down

0 comments on commit 53672e4

Please sign in to comment.