Don't set negative margin to the navigator toolbox in the fullscreen mode, on OS X Lion (#645)

This commit is contained in:
YUKI Hiroshi 2014-02-03 18:05:54 +09:00
parent 439697f462
commit 65f1c79acc

View File

@ -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');