操作がきかなくなる問題を解消?

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5598 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-24 06:44:00 +00:00
parent 63ce315380
commit 05ba50c688

View File

@ -27,23 +27,20 @@
revision : currentRevision, revision : currentRevision,
_stopLevel : 0, _stopLevel : 0,
_lastFocusedWindow : null,
get rootContentViewer() get baswWindow()
{ {
return window.top return window.top
.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation) .getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShell) .QueryInterface(Components.interfaces.nsIDocShell)
.contentViewer .QueryInterface(Components.interfaces.nsIBaseWindow);
.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
}, },
stop : function() stop : function()
{ {
if (!this._stopLevel) { if (!this._stopLevel) {
this._lastFocusedWindow = window.top.document.commandDispatcher.focusedWindow; this.baswWindow.setPosition(window.top.innerWidth * 3, window.top.innerHeight * 3);
this.rootContentViewer.hide();
} }
this._stopLevel++; this._stopLevel++;
}, },
@ -52,11 +49,7 @@
{ {
this._stopLevel--; this._stopLevel--;
if (!this._stopLevel) { if (!this._stopLevel) {
this.rootContentViewer.show(); this.baswWindow.setPosition(0, 0);
if (this._lastFocusedWindow) {
window.top.document.commandDispatcher.focusedWindow = this._lastFocusedWindow;
}
this._lastFocusedWindow = null;
} }
} }