Results 1 to 4 of 4

Thread: right align combobox list

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608

    Default right align combobox list

    See screenshot. How can i right-align the dropdown list in so that the left part is aligned with the textbox?

    Thanks
    Attached Images Attached Images

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    This should help:
    Code:
    listAlign: 'tr-br?'
    but unfortunately, ComboBox align to the el instead of the wrap (you could patch this).

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608

    Default

    Hmm.. restrictHeight, but especially expand is a large function, resulting in possible conflits when upgrading extjs.. Is this the only line to change ?
    expand:
    this.list.alignTo.apply(this.list, [this.el].concat(this.listAlign));
    becomes
    Code:
    this.list.alignTo.apply(this.list, [this.wrap].concat(this.listAlign));

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Correct.

Similar Threads

  1. Combobox inner list not aligning list items propertly ?
    By ritesh.kapse in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 29 Oct 2010, 5:29 AM
  2. Combobox List Align
    By titobundy in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 18 Feb 2010, 8:04 AM
  3. combobox's arrow align
    By marcollo in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 22 May 2009, 10:55 AM
  4. Replies: 11
    Last Post: 25 Sep 2008, 10:26 PM
  5. how to set align in comboBox
    By Supersuper in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 10 Jul 2007, 9:01 AM

Posting Permissions

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