Closed Bug 182597 Opened 23 years ago Closed 18 years ago

file button is hidden if it has html size attr greater than css style width

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: Rick.Ju, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files, 1 obsolete file)

the test case is sth like : <input type="file" size="100" style="width: 400pt;" name="filename" value="*.*"> steps: click the "Browse" Button, Results: the button disappear! expecting: a file Dialog pop up
Attached file testcase (obsolete) —
this testcase worksforme with linux trunk build 20021127
==> Form Controls
Component: Form Manager → Layout: Form Controls
Attached file testcase
try this
Attached file reduced testcase
the problem is that the style width is specified to be smaller than it needs to be to accomodate the size attribute. Hitting the button causes a reflow and the table shrink wraps to the style width instead of the actual size of the input (this is probably how it should have been drawn in the first place). The problem is that the button is no longer displayed.
Attachment #107765 - Attachment is obsolete: true
Keywords: testcase
Summary: file button is corrupted if it have html size attr and css style width same time → file button is hidden if it has html size attr greater than css style width
Not going to work on this anytime soon unless there is a topsite.
Assignee: jkeiser → form
Priority: -- → P3
Target Milestone: --- → Future
I got a somewhat diferent problem with the "browse" button and the "width" css attribute. In my test the file button would appear in the middle of the entry field. I will try to reproduce the problem in a simple html and attach it.
Attached a test case that makes the button appear in the middle of the "file" input entry field.
this is WFM using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a6pre) Gecko/20070622 ID:2007062204 though there are some optical glitches comparing e.g. to MSIE 7 -> WORKSFORME
indeed. this has been WFM since Moz 1.7 xtc4uall: the testcase from comment 4 looked OK to me. If you see any remaining issues, please file a new bug
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: