View Full Version : [CLOSED] Menu onPosition and move event not firing

25 Dec 2013, 5:33 PM
Ext version tested:

Ext 4.2 rev
Browser versions tested against:

Chrome Version 31.0.1650.63 m

Prior to 4.2 calling showBy on a menu caused 2 calls to onPosition in the menu. First call occurred when its was shown and second call when the menu was positioned by the given component. This no longer occurs
Steps to reproduce the problem:

See the Sencha fiddle - https://fiddle.sencha.com/#fiddle/2co
Run the fiddle with the chrome debugger activated, you will get a single alert and debugger. Set framework back to 4.1 and you will get the correct two onPosition calls firing
The debugger allows you to see where the menu is positioned during the call. You can see the first call is done with a show then second call when the menu is positioned by the component
The result that was expected:

onPosition should be called after the menu is positioned by the component

Component showBy in 4.2 calls alignTo instead of setPagePosition
setPagePosition calls setPosition which triggers the onPosition call and move event to fire

Gary Schlosberg
2 Jan 2014, 10:45 AM
Thanks for the report! I have opened a bug in our bug tracker.