Don't eat the click event by the "invisible popup" for the autohide.

popupBoxObject.setConsumeRollupEvent(Components.interfaces.nsIPopupBoxObject.ROLLUP_NO_CONSUME) have to be called on poupshown, not on popupshowing.
This commit is contained in:
YUKI Hiroshi 2012-12-05 11:46:52 +09:00
parent 5718fef495
commit 6030fc690d

View File

@ -145,7 +145,7 @@
<tooltip id="treestyletab-full-tree-tooltip"/> <tooltip id="treestyletab-full-tree-tooltip"/>
<panel id="treestyletab-autohide-content-area-screen" <panel id="treestyletab-autohide-content-area-screen"
treestyletab-ignore-state="true" treestyletab-ignore-state="true"
onpopupshowing="if ('setConsumeRollupEvent' in this.popupBoxObject) this.popupBoxObject.setConsumeRollupEvent(Components.interfaces.nsIPopupBoxObject.ROLLUP_NO_CONSUME);" onpopupshown="if ('setConsumeRollupEvent' in this.popupBoxObject) this.popupBoxObject.setConsumeRollupEvent(Components.interfaces.nsIPopupBoxObject.ROLLUP_NO_CONSUME);"
onclick="this.hidePopup();" onclick="this.hidePopup();"
onDOMMouseScroll="this.hidePopup()"/> onDOMMouseScroll="this.hidePopup()"/>
</popupset> </popupset>