Hybrid View
-
31 Dec 2012 12:06 AM #1
ExtJS 4.1 : Opening Window at the x,y coordinate that I desire
ExtJS 4.1 : Opening Window at the x,y coordinate that I desire
Dear all.
I have several windows on my viewport which opens when I click different buttons.
My problem is that all the window opens at the centre of the screen.
I want to open them at the location I desire. Not at the centre.
Please let me know how to do that.
thanks
-
1 Jan 2013 2:27 PM #2
Rather than invoking show on your window, use the showAt or showBy methods.
http://docs.sencha.com/ext-js/4-1/#!...-method-showAt
http://docs.sencha.com/ext-js/4-1/#!...-method-showBy
If you are using the configuration autoShow, you will have to uncheck this and manually invoke showAt or showBy.Aaron Conran
@aconran
Sencha Architect Development Team
-
1 Jan 2013 10:48 PM #3
Thanks aconran,
I simply turned off autoShow property and gave x and y coordinate. It solved the problem for now.
But I will implement your idea which seems more better for me
thanks


Reply With Quote