[CLOSED] Center window to Panel or Grid

  1. #1

    [CLOSED] Center window to Panel or Grid

    I want my pop-up window to center to a gridpanel, not the screen. How can I do that?
    Last edited by Daniil; Jul 27, 2012 at 2:11 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use:
    var xy = Window1.el.getAlignToXY(GridPanel1.el, 'c-c');
    Window1.setPagePosition(xy[0], xy[1]);

Similar Threads

  1. Replies: 1
    Last Post: Oct 26, 2012, 8:52 AM
  2. Replies: 2
    Last Post: Jun 23, 2012, 2:17 PM
  3. Replies: 3
    Last Post: Dec 09, 2010, 5:40 AM
  4. [CLOSED] Center window on window resize
    By CSG in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 29, 2009, 5:05 AM
  5. Replies: 3
    Last Post: Sep 13, 2008, 10:09 AM

Posting Permissions