Closed Bug 273450 Opened 20 years ago Closed 20 years ago

Input type="file" style = "width:600px;" Filebox doesnt get extended acording to the style

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 132565

People

(Reporter: denisber, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 When making a form with a file input the style doesnt work for width For example try: <body style="background-color: rgb(153, 153, 153);"> <form><input style="width: 600px;" type="file"> </form> </body> This makes a strange box in which only a part is useable. (The BG is gray so that you can see what it really does). In IE this behaves as expected and the filebox is expanded to the pixel size. Reproducible: Always Steps to Reproduce: 1.Create an HTML and include the following form. 2. <body style="background-color: rgb(153, 153, 153);"> <form><input style="width: 600px;" type="file"> </form> </body> 3.open the html Actual Results: filebox is drawn with an big inactive part Expected Results: The filebox sould be resized to the pixel size spesified
Summary: Input type="file" style = "width:100px;" Filebox doesnt get extended acording to the style → Input type="file" style = "width:600px;" Filebox doesnt get extended acording to the style
confirming, Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a6) Gecko/20041207 Mozilla/5.0 (Windows; U; Win98; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0 I added some rulers to the testcases to show the dimensions. The 100 pix wide box is to wide, the 'browse' button is to the right. The 600 pix wide box has correct width, but the 'browse' button is in the box, has same position as in the first testcase. Seems the 'browse' button has fixed position and dimension, the box extends to it, if the width is specified smaller. In my german Firefox the button is titled 'Durchsuchen', starts at the same position, but is wider, according to the length of its title. Using the browse button, the selected path is shown up to the start of the button, the part of the box following the button is empty.
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
Product: Mozilla Application Suite → Core
Version: unspecified → Trunk
*** This bug has been marked as a duplicate of 132565 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: