Results 1 to 3 of 3

Thread: Fixed form field width

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    28

    Default Fixed form field width

    Hello,
    I am placing many form inputs in 4-column layout with 0.25 width each. All inputs are filling whole column's space, labelAlign is 'top'. How to set certain input's fixed size? I need it for example for numberfield, which holds only 1 digit or other low space requiring items.

    My layout looks like:
    Code:
    vbox0:
      column: (defaults: { columnWidth: 0.25, labelAlign: 'top' })
        form.field0
        form.field1
        form.field2
        form.field3
     ...
    vboxN:
      column:
         ...

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default

    Hi desp,

    You can use minWidth and maxWidth config of text field.
    http://docs.sencha.com/ext-js/4-1/#!...r-cfg-maxWidth
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    28

    Default

    It does not work.. By the way I forgot to mention that small input cause whole collumn to shrink. Why? I set it to 25% of container.

Posting Permissions

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