1. #1
    Sencha User masoud_tamizy's Avatar
    Join Date
    Oct 2011
    Posts
    108
    Answers
    1
    Vote Rating
    0
    masoud_tamizy is on a distinguished road

      0  

    Default Answered: how can i place a button in right side of panel ?

    Answered: how can i place a button in right side of panel ?


    i want to place a button in right side of panel , but it place in left !!
    how can i do it ?

  2. Have a try
    Code:
    xtype: 'fieldcontainer',
    anchor:'100%',
    layout: {type:'hbox', pack: 'end'},
    items:[{
        text: 'ثبت و دریافت شماره حساب',
        xtype:'button',
        id:'register_button',
        name:'register',
        formBind: true
    ]}

  3. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Answers
    130
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    depends on your layout! if you put your button into a toolbar, you can choose to display it left, centered or at the right side.

    if you want to do it without toolbars, you can put a vbox layout into your panel, use an hbox layout in the second container, give the first container there a flex:1 value and the second one the width of your button. maybe a bit overnested, but it should do the trick.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  4. #3
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    if you are using top bar (tbar) or bottom bar (bbar), you can use:

    Code:
    items:
    [
      '->',
      {text: 'your_button'}
    ]

  5. #4
    Sencha User masoud_tamizy's Avatar
    Join Date
    Oct 2011
    Posts
    108
    Answers
    1
    Vote Rating
    0
    masoud_tamizy is on a distinguished road

      0  

    Default


    i want this :
    untitled1.PNG
    i use :
    Code:
    xtype: 'fieldcontainer',
    anchor:'100%',
    layout: {type:'hbox',align: 'center'},
    items:[{text: 'ثبت و دریافت شماره حساب',
                xtype:'button',
    		id:'register_button',
    		name:'register',
    		formBind: true
    ]}
    but it didn't work !!!

  6. #5
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    one quick and dirty way to do it is by adding a space before the button:

    Code:
    { xtype: 'tbspacer', width: 100 },
    { xtype: 'button',
    // your button code here....
    }
    and then adjust the width so that the button moves left enough. this is not a good way to do it though.

  7. #6
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Answers
    130
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    do you read the replies you are getting? could save your time...
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  8. #7
    Sencha User masoud_tamizy's Avatar
    Join Date
    Oct 2011
    Posts
    108
    Answers
    1
    Vote Rating
    0
    masoud_tamizy is on a distinguished road

      0  

    Default


    thank you tobiu & farish very much

  9. #8
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Have a try
    Code:
    xtype: 'fieldcontainer',
    anchor:'100%',
    layout: {type:'hbox', pack: 'end'},
    items:[{
        text: 'ثبت و دریافت شماره حساب',
        xtype:'button',
        id:'register_button',
        name:'register',
        formBind: true
    ]}

Thread Participants: 3

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