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

Commit

Permalink
Bug 960215 - [B2G][Messages] Image-attachment does not fill the scree…
Browse files Browse the repository at this point in the history
…n in landscape orientation
  • Loading branch information
huchengtw-moz committed Feb 18, 2014
1 parent 988c320 commit 44a4a3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/gallery/js/open.js
Original file line number Diff line number Diff line change
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 44a4a3d

Please sign in to comment.