Skip to content

Commit

Permalink
Don't set negative margin to the navigator toolbox in the fullscreen …
Browse files Browse the repository at this point in the history
…mode, on OS X Lion (#645)
  • Loading branch information
piroor committed Feb 3, 2014
1 parent 439697f commit 65f1c79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/fullscreenObserver.js
Expand Up @@ -86,8 +86,10 @@ FullscreenObserver.prototype = {
if (d.documentElement.getAttribute('sizemode') != 'fullscreen')
return;

var toolbox = w.gNavToolbox;
toolbox.style.marginTop = -toolbox.getBoundingClientRect().height + 'px';
if (!w.FullScreen.useLionFullScreen) { // see https://github.com/piroor/treestyletab/issues/645
let toolbox = w.gNavToolbox;
toolbox.style.marginTop = -toolbox.getBoundingClientRect().height + 'px';
}

var windowControls = d.getElementById('window-controls');
var navigationToolbar = d.getElementById('nav-bar');
Expand Down

0 comments on commit 65f1c79

Please sign in to comment.