Results 1 to 4 of 4

Thread: Form positioning

  1. #1

    Question Form positioning

    I'm new in ExtJs, so I have a very stupid question: How can I do to center a form in the Browser Window? For example, the first form of the "Dynamic Forms Example" (http://extjs.com/deploy/dev/examples/form/dynamic.html). I want to put it in the middle of the screen and I don't know how to do it. Can anyone help me?
    Sorry for my English. Sometimes, is not so good.
    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Assuming your panel has an id='p1'
    Code:
    Ext.getCmp('p1').getEl().center()

  3. #3

    Default

    Thanks. It worked!

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Bah
    Posts
    434

    Default

    Gualterio, don't worry, your English seems good enough
    Fernando G

Posting Permissions

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