Results 1 to 3 of 3

Thread: ExtJS 4.1 : Opening Window at the x,y coordinate that I desire

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
      0  

    Default 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

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    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

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
      0  

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •