B2G/gaia/apps/gallery/js/gallery.js
// when we entered or left fullscreen mode.
when we entered or left fullscreen mode.
when we entered or left fullscreen mode .
function resizeHandler() {
   When we enter or leave fullscreen mode, we get two resize events.
   When we get the first one, we don't know what our new size is, so
   we just ignore it. XXX: we're not using fullscreen mode anymore,
   but it seems safer to leave this code in.
  if (fullscreenView.offsetWidth === 0 && fullscreenView.offsetHeight === 0)
    return;
  if (currentView === fullscreenView) {
    currentFrame.resize();
    previousFrame.reset();
    nextFrame.reset();
     We also have to reposition the frames to get the next and previous
     frames the correct distance away from the current frame
    setFramesPosition();
  }
}
function resizeHandler ( ) { if ( fullscreenView . offsetWidth === 0 && fullscreenView . offsetHeight === 0 ) return ; if ( currentView === fullscreenView ) { currentFrame . resize ( ) ; previousFrame . reset ( ) ; nextFrame . reset ( ) ; setFramesPosition ( ) ; } }
when we entered or left fullscreen mode.
when we entered or left fullscreen mode .
// // When we enter or leave fullscreen mode, we get two resize events. // When we get the first one, we don't know what our new size is, so // we just ignore it. XXX: we're not using fullscreen mode anymore, // but it seems safer to leave this code in. // // We also have to reposition the frames to get the next and previous // frames the correct distance away from the current frame