Hybrid View

  1. #1
    Ext User
    Join Date
    Dec 2009
    Posts
    5
    Vote Rating
    0
    wekion is on a distinguished road

      0  

    Default Changing width of FileUploadField

    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?

    Edit:

    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
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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

Thread Participants: 1