1. #1
    Ext User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    leaf521 is on a distinguished road

      0  

    Question how to set the value of padiing belonged to formpanel

    how to set the value of padiing belonged to formpanel


    I want to set the value of the padding which is the proprety of formpanel dynamicly!
    following is my code;


    var my_form=new Ext.FormPanel({
    id : 'my_form',
    region : 'center',
    padding : '0 50px 50px 50px',
    items:[{xtype:'textfield',name:'nanme',fieldlabel:'name'},{xtype:'textfield',name:'age',fieldlabel:'age'}]});

    my_form.render(document.body);



    ----------------------------------
    I want to set my_form.padding='100px 50px 50px 50px',
    How should I do

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You can't just put CSS style properties into Panel configurations!

    Read what configurations you can use:

    http://extjs.com/deploy/ext-3.0-rc1....form.FormPanel

    (bodyStyle)

  3. #3
    Sencha User bt_bruno's Avatar
    Join Date
    Mar 2008
    Location
    Redwood City, CA
    Posts
    154
    Vote Rating
    10
    bt_bruno will become famous soon enough

      0  

    Default


    Code:
    {
    ...
    bodyStyle:'padding:10px;'
    ...
    }

  4. #4
    Ext User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    leaf521 is on a distinguished road

      0  

    Question


    Quote Originally Posted by Animal View Post
    You can't just put CSS style properties into Panel configurations!

    Read what configurations you can use:

    http://extjs.com/deploy/ext-3.0-rc1....form.FormPanel

    (bodyStyle)

    exceuse me,but I can use it in the formpanel,I read the configurations of the formpanel,
    but I don't know how to refresh the constructor of the formpanel!
    and I can use the padding propertiy in the formpanel,but I can't set the value of the padding
    in my function,could you tell me a way?

  5. #5
    Ext User
    Join Date
    May 2009
    Posts
    4
    Vote Rating
    0
    leaf521 is on a distinguished road

      0  

    Default


    Quote Originally Posted by bt_bruno View Post
    Code:
    {
    ...
    bodyStyle:'padding:10px;'
    ...
    }

    I had test it liek mypanel.bodystyle.padding='100px 0 0 0',
    but FF tell me the bodystyle is undefined!

  6. #6
    Sencha User bt_bruno's Avatar
    Join Date
    Mar 2008
    Location
    Redwood City, CA
    Posts
    154
    Vote Rating
    10
    bt_bruno will become famous soon enough

      0  

    Default


    If you want to do this dinamically you should use a method instead of setting properties:

    Code:
    mypanel.body.applyStyles('padding:10px')

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi