ポップアップの表示が途中でキャンセルされた場合に対応
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4441 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
bae4c2cc6e
commit
4ab934d5e6
@ -1752,8 +1752,13 @@ catch(e) {
|
||||
'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]',
|
||||
aEvent.originalTarget,
|
||||
XPathResult.BOOLEAN_TYPE
|
||||
).booleanValue)
|
||||
).booleanValue) {
|
||||
this.popupMenuShown = true;
|
||||
window.setTimeout(function(aSelf, aPopup) {
|
||||
if (!aPopup.boxObject.width || !aPopup.boxObject.height)
|
||||
aSelf.popupMenuShown = false;
|
||||
}, 10, this, aEvent.originalTarget);
|
||||
}
|
||||
return;
|
||||
|
||||
case 'popuphiding':
|
||||
@ -1762,8 +1767,9 @@ catch(e) {
|
||||
'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]',
|
||||
aEvent.originalTarget,
|
||||
XPathResult.BOOLEAN_TYPE
|
||||
).booleanValue)
|
||||
).booleanValue) {
|
||||
this.popupMenuShown = false;
|
||||
}
|
||||
return;
|
||||
|
||||
case 'keydown':
|
||||
|
Loading…
Reference in New Issue
Block a user