1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    40
    Vote Rating
    0
    wavedan is on a distinguished road

      0  

    Exclamation How to align two comboboxes right next to each other?

    How to align two comboboxes right next to each other?


    I have one Ext.form.TimeField and I want to align another Ext.form.TimeField to the right of it without it going on a new line. For example I set width to 50 to make both small enough and want to place both next to each other.

  2. #2
    Ext User
    Join Date
    Aug 2010
    Posts
    40
    Vote Rating
    0
    wavedan is on a distinguished road

      0  

    Default


    It seems that layout: 'anchor' is what I am currently using.
    Is table layout what I need?

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2009
    Posts
    110
    Vote Rating
    0
    Chods is on a distinguished road

      0  

    Default


    Quote Originally Posted by wavedan View Post
    It seems that layout: 'anchor' is what I am currently using.
    Is table layout what I need?
    You could do although I normally use columnLayout or sometimes hbox

  4. #4
    Ext User
    Join Date
    Aug 2010
    Posts
    40
    Vote Rating
    0
    wavedan is on a distinguished road

      0  

    Default


    Quote Originally Posted by Chods View Post
    You could do although I normally use columnLayout or sometimes hbox
    I found out I am already using column layout, but I didn't get it to work, as the combobox is allocated in the next column. What I want is to essentially have two comboboxes in the same column. What's the easiest way to accomplish this with my existing layout?

    Code:

    Code:
     
    var window = new Ext.Window({
    title: 'Registrer',
    width: 800,
    height:500,
    minWidth: 800,
    minHeight: 500,
    layout: 'anchor',
    plain:false,
    bodyStyle:'padding:5px;',
    buttonAlign:'center',
    closable: false,
    items: [{
    items: registrationformPanel
    },{
    items: infoPanel
    }],
    And in registrationformPanel:

    Code:
    items: [{
    layout:'column',
    items:[{
    columnWidth:.50,
    layout: 'form',
    items: [
    company_id,
    company_name,
    orgno,
    firstname,
    lastname,
    address1,
    postalcode,
    postalarea
    ]
    },{
    columnWidth:.50,
    layout: 'form',
    items: [
    phone1,
    mobile,
    fax1,
    email,
    www,
    bankaccount,
    member_password,
    member_confirm_password,
    bransje

Similar Threads

  1. MD Comboboxes
    By seek in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 9 Mar 2010, 2:49 AM
  2. I need help concerning comboboxes
    By jahman in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Apr 2009, 4:10 AM
  3. How to align Textfield and Comboboxes in a Form
    By dschonhals in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Oct 2008, 9:45 AM
  4. Toolbar: to align or not to align
    By soad in forum Community Discussion
    Replies: 1
    Last Post: 4 May 2007, 1:35 AM
  5. ComboBoxes get?
    By pex in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 12 Apr 2007, 5:49 AM

Thread Participants: 1

Tags for this Thread

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