Results 1 to 3 of 3

Thread: set postion of child window to center of parent window

  1. #1
    Sencha User
    Join Date
    Jul 2017
    Posts
    5

    Default set postion of child window to center of parent window

    How can i set postion of child window to center of parent window?

    my child window :
    Code:
     this.myWindow = new Ext.Window({
    
    ....
    )};

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    What version? alignTo works in later versions.

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2015
    Location
    Melbourne, Australia
    Posts
    56

    Default

    Like animal said using alignTo, so maybe something like:

    PHP Code:

    var me this;

    me.myWindow = new Ext.Window({

    ....
    )};

    me.myWindow.on('afterrender', function () {
        
    me.myWindow.alignTo(me.getEl(), "c-c");
    }); 

Similar Threads

  1. Replies: 1
    Last Post: 13 Oct 2016, 2:03 PM
  2. Replies: 3
    Last Post: 2 Aug 2012, 6:55 AM
  3. Access elements in child window containing IFRAME from parent window
    By Tinki in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 2 Jun 2009, 2:25 AM

Tags for this Thread

Posting Permissions

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