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 #10630 from leob2g/bug_887133_icons_orientation_al…
Browse files Browse the repository at this point in the history
…ignment

bug 887133 making flash and toggle camera icons to align with phone's orientation. r=daleharvey
  • Loading branch information
daleharvey committed Jun 27, 2013
2 parents 40a45fc + a4d522b commit ae9a288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/camera/js/camera.js
Expand Up @@ -310,8 +310,8 @@ var Camera = {

// We lock the screen orientation and deal with rotating
// the icons manually
var css = '#switch-button span, #capture-button span, ' +
'#gallery-button span { -moz-transform: rotate(0deg); }';
var css = '#switch-button span, #capture-button span, #toggle-flash, ' +
'#toggle-camera, #gallery-button span { -moz-transform: rotate(0deg); }';
var insertId = this._styleSheet.cssRules.length - 1;
this._orientationRule = this._styleSheet.insertRule(css, insertId);
window.addEventListener('deviceorientation', this.orientChange.bind(this));
Expand Down

0 comments on commit ae9a288

Please sign in to comment.