don't show content area screen if the window is not active

This commit is contained in:
SHIMODA Hiroshi 2011-12-05 16:27:33 +09:00
parent 11b7baef1a
commit 00be6a4f00

View File

@ -629,7 +629,11 @@ AutoHideBrowser.prototype = {
},
showHideContentsAreaScreen : function AHB_showHideContentsAreaScreen()
{
if (this.expanded && this.contentAreaScreenEnabled) {
if (
this.expanded &&
this.contentAreaScreenEnabled &&
this.FocusManager.activeWindow.top == this.window
) {
let box = this.getContentsAreaBox();
let style = this.screen.style;
let width = Math.min(box.width, this.window.screen.availWidth - box.screenX);