Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
    sajan is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,445
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      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
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
    sajan is on a distinguished road

      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

Thread Participants: 1