Results 1 to 2 of 2

Thread: Changing width of FileUploadField

  1. #1
    Ext User
    Join Date
    Dec 2009
    Vote Rating

    Default Changing width of FileUploadField

    Been trying to increase the width of the textfield within the FileUploadField component.

    Have tried setSize, but it only changes the height.

    Tried getFileInput().setSize(..) (after render event) but seems to have no effect.

    Any ideas?


    If I call setAutoWidth(true), the field itself seems to expand, but not the textfield within the component, as seen by the Browse button moving on the right side.

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Vote Rating


    You have to call setWidth(500) of the fileuploadfield. Your code changes the size of some inner elements (which yuo dont want to do)

Similar Threads

  1. FileUploadField rendered with width 0
    By Air_Mike in forum Ext 3.x: Help & Discussion
    Replies: 12
    Last Post: 1 Jun 2011, 4:37 AM
  2. Updating FileUploadField width
    By Tinki in forum Ext 3.x: Help & Discussion
    Replies: 18
    Last Post: 25 Mar 2011, 3:38 AM
  3. Replies: 3
    Last Post: 10 Feb 2009, 6:53 AM
  4. Changing TextField Width..please help
    By freez in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 17 Sep 2008, 1:45 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