Minefieldでスプリッタ上のgrippyのクリックが期待通りに機能していなかった

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7190 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-13 14:45:33 +00:00
parent 5cd42a7134
commit 433860d03e
2 changed files with 8 additions and 9 deletions

View File

@ -1612,11 +1612,7 @@ catch(e) {
onTabbarResizeStart : function TSTService_onTabbarResizeStart(aEvent)
{
if (this.evaluateXPath(
'ancestor-or-self::xul:grippy',
aEvent.originalTarget,
XPathResult.BOOLEAN_TYPE
).booleanValue)
if (this.isEventFiredOnGrippy(aEvent))
return;
aEvent.stopPropagation();
@ -1628,7 +1624,7 @@ catch(e) {
var b = this.getTabBrowserFromChild(aEvent.currentTarget);
var box = aEvent.currentTarget.id == 'treestyletab-tabbar-resizer-splitter' ?
this.getTabStrip(b) :
b.mTabContainer ;
b.treeStyleTab.tabStripPlaceHolder || b.tabContainer ;
this.tabbarResizeStartWidth = box.boxObject.width;
this.tabbarResizeStartHeight = box.boxObject.height;
this.tabbarResizeStartX = aEvent.screenX;

View File

@ -1285,6 +1285,7 @@ TreeStyleTabBrowser.prototype = {
var strip = this.tabStrip;
var tabContainerBox = this.getTabContainerBox(this.mTabBrowser);
var positioned = false;
var collapsed = !this.splitter.collapsed && this.splitter.getAttribute('state') == 'collapsed';
var pos = this.currentTabbarPosition;
if (pos != 'top' ||
this.mTabBrowser.getAttribute(this.kFIXED) != 'true') {
@ -1333,9 +1334,11 @@ TreeStyleTabBrowser.prototype = {
this.mTabBrowser.tabContainer.removeAttribute('context');
}
this._tabStripPlaceHolder.collapsed =
this.splitter.collapsed =
(this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1);
if (!collapsed) {
this._tabStripPlaceHolder.collapsed =
this.splitter.collapsed =
(this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1);
}
if (this.mTabBrowser != gBrowser)
return;