Closed Bug 116411 Opened 23 years ago Closed 23 years ago

Height scaling of text input elements broken inside of tables

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 114901

People

(Reporter: jkilmer, Assigned: rods)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6+) 
Gecko/20011219

Text input boxes inside table cells have their height scaling calculated 
improperly when setting height=100% with CSS.  The problem occurs when the 
prevailing text height of the table row is smaller than the combined height of 
the input box's text size and padding/borders.

In the attached test case, if you remove the {height: 100%} attribute on 
class .data, then the text box scales properly in the first table, since the 
total row height is greater than the 14px specified for the text in the row.  
However, in the second table, the input box then fails to fill the cell when 
that is done.

In the second table of the test case, as posted, the input box scales properly 
when the row's text size is larger than the input box's text size plus 
padding/borders.  

IE shows the expected behavior in both cases: scaling the table cell up when 
the row is shorter than the necessary size to accommodate the input box, and 
scaling the input box up when the table cell is larger than the input box.

*** This bug has been marked as a duplicate of 114901 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 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: