1. #1
    Ext JS Premium Member MrBoolean's Avatar
    Join Date
    Mar 2011
    Location
    Munich, Germany
    Posts
    24
    Vote Rating
    0
    MrBoolean is on a distinguished road

      0  

    Default Ext.window.Window and Ext.form.TextField

    Ext.window.Window and Ext.form.TextField


    Hello there,

    today i started to create a new Ext.window.Window:

    Code:
    var window = new Ext.window.Window({
        title: 'Neues Portfolio',
        modal: true,
        width: 500,
        height: 500,
        layout: 'fit',
        boddyPadding: '25px',
        items: [
            new Ext.form.TextField({ name: 'name', fieldLabel: 'Name' })
        ],
        closeAction: 'hide',
        resizable: false,
        dragable: false
    });
    But after adding "boddyPadding" the form looks like this:



    But, why

    Need help guys.

    Greets,
    Marc

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,915
    Vote Rating
    630
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Typo. Only 1 d is body!

    Also, you can just use:

    Code:
    bodyPadding: 25
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member MrBoolean's Avatar
    Join Date
    Mar 2011
    Location
    Munich, Germany
    Posts
    24
    Vote Rating
    0
    MrBoolean is on a distinguished road

      0  

    Default


    Hmmm... I've edit the code block:

    Code:
    var window = new Ext.window.Window({
        title: 'Neues Portfolio',
        modal: true,
        width: 500,
        height: 500,
        layout: 'fit',
        bodyPadding: 25,
        items: [
            new Ext.form.TextField({ name: 'name', fieldLabel: 'Name' })
        ],
        html: 'test',
        closeAction: 'hide',
        resizable: false,
        dragable: false
    });
    But there is no difference.

Similar Threads

  1. TextField.change und Window.beforeclose
    By ck4ExtJS in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 7 Nov 2010, 11:52 PM
  2. [FIXED] Window.setAutoHide() closes window on window moving
    By sorrro in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 6 Oct 2009, 6:50 AM
  3. Form in a Window: focusing element after the window is opened
    By Qtx in forum Ext 3.x: Help & Discussion
    Replies: 10
    Last Post: 24 Aug 2009, 1:52 AM
  4. TextField can't be focused when use window
    By lyo in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 2 Aug 2008, 11:30 AM

Thread Participants: 1