open the popup to the side of the current menu item
this._stopPopupTimer(); var from_item = this.focusedChild; var popup = from_item.popup; if(popup.isShowingNow){ return; } popup.parentMenu = this; var self = this; dijit.popup.open({ parent: this, popup: popup, around: from_item.arrowCell, orient: this.isLeftToRight() ? {'TR': 'TL', 'TL': 'TR'} : {'TL': 'TR', 'TR': 'TL'}, onCancel: function(){ // called when the child menu is canceled dijit.popup.close(popup); from_item.focus(); // put focus back on my node self.currentPopup = null; } }); this.currentPopup = popup; if(popup.focus){ popup.focus(); }