PDA

View Full Version : [Feature Req] Support for the Offsets Array in Menu's "alignTo", Button's "menuAlign"



MD
29 May 2009, 8:15 PM
I've encountered this now a few times, and never understood why Menu's "defaultAlign" and Button's "menuAlign", etc. config option only supports the positions string part of Ext.Element.alignTo.

It would be helpful to also be able to specify the offsets array and even the animate bool/obj.


alignTo( Mixed element, String position, [Array offsets], [Boolean/Object animate] ) : Ext.Element

I often have Menu's that I don't want aligning absolutely flush with their aligning elements. :(

MD

Animal
29 May 2009, 10:06 PM
I agree. It would be a very easy enhancement to add a defaultAlignOffset config. There's no animation, menus are just shown using showAt()

Eric24
9 Jun 2009, 7:57 PM
+1

MD
17 Jun 2009, 11:00 AM
Any chance we could slip this one in before 3.0 final?

MD

Animal
24 Jun 2009, 12:08 AM
http://extjs.com/forum/showthread.php?p=347931

kschaffe
2 Jan 2014, 9:08 AM
I know this post is extremely old but what is the solution to this in 4.2? The link here does not work for me. Thanks

EgorB
22 May 2017, 6:52 AM
Is there solution of this case now?