+ if(this.enableScrolling){\r
+ // set the position so we can figure out the constrain value.\r
+ this.el.setXY(xy);\r
+ //constrain the value, keep the y coordinate the same\r
+ this.constrainScroll(xy[1]);\r
+ xy = [this.el.adjustForConstraints(xy)[0], xy[1]];\r
+ }else{\r
+ //constrain to the viewport.\r
+ xy = this.el.adjustForConstraints(xy);\r
+ }\r
+ this.el.setXY(xy);\r
+ this.el.show();\r
+ Ext.menu.Menu.superclass.onShow.call(this);\r
+ if(Ext.isIE){\r
+ // internal event, used so we don't couple the layout to the menu\r
+ this.fireEvent('autosize', this);\r
+ if(!Ext.isIE8){\r
+ this.el.repaint();\r
+ }\r
+ }\r
+ this.hidden = false;\r
+ this.focus();\r
+ this.fireEvent('show', this);\r