ウィンドウの初期化で余計な所に触らないように(ウィンドウの幅がものすごく小さくなってしまう問題を修正)
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7173 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
b938013e2b
commit
0c4de3d9a6
@ -1826,7 +1826,7 @@ catch(e) {
|
||||
this.evaluateXPath(
|
||||
'local-name() = "tooltip" or local-name() ="panel" or '+
|
||||
'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]',
|
||||
aEvent.originalTarget,
|
||||
aPopup,
|
||||
XPathResult.BOOLEAN_TYPE
|
||||
).booleanValue)
|
||||
return;
|
||||
|
@ -1251,7 +1251,6 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
|
||||
this.mOwner.browser.setAttribute(this.kMODE+'-normal', this.getTreePref('tabbar.autoHide.mode'));
|
||||
this.mOwner.browser.setAttribute(this.kMODE+'-fullscreen', this.getTreePref('tabbar.autoHide.mode.fullscreen'));
|
||||
|
||||
this.addPrefListener(this);
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.autoHide.area');
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.transparent.style');
|
||||
@ -1271,22 +1270,16 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
b.addEventListener('TreeStyleTabFocusSwitchingStart', this, false);
|
||||
b.addEventListener('TreeStyleTabFocusSwitchingEnd', this, false);
|
||||
|
||||
var stack = document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabs-stack');
|
||||
if (stack || this.mOwner.isFloating) {
|
||||
let canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
|
||||
canvas.setAttribute('style', 'display:none;width:1;height:1;');
|
||||
|
||||
if (stack)
|
||||
if (!this.mOwner.isFloating) {
|
||||
let stack = document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabs-stack');
|
||||
if (stack) {
|
||||
let canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
|
||||
canvas.setAttribute('style', 'display:none;width:1;height:1;');
|
||||
stack.firstChild.appendChild(canvas);
|
||||
else
|
||||
this.mOwner.tabStripPlaceHolder.appendChild(canvas);
|
||||
|
||||
this.tabbarCanvas = canvas;
|
||||
this.clearBG();
|
||||
this.tabbarCanvas = canvas;
|
||||
this.clearBG();
|
||||
}
|
||||
}
|
||||
|
||||
b = null;
|
||||
stack = null;
|
||||
},
|
||||
|
||||
destroy : function TSTAutoHide_destroy()
|
||||
|
Loading…
Reference in New Issue
Block a user