Summary: | REGRESSION: "Invite a friend" text field in GMail page spills out of table | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adele Peterson <adele> | ||||||
Component: | Forms | Assignee: | Beth Dakin <bdakin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bdakin, hyatt | ||||||
Priority: | P1 | Keywords: | HasReduction, Regression | ||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Adele Peterson
2006-04-05 17:12:18 PDT
Created attachment 7533 [details]
test case - reduction
I think width:100% might not be doing what its supposed to do here. Note- the text field (in the reduction, and the live site) looks the right width in Firefox and in stock Safari. I think I have a fix for this... Created attachment 7540 [details]
m_minWidth should be 0 for percents
Here is the patch that fixes the test case. RenderReplaced::calcMinMaxWidth() sets m_minWidth to 0 when the width is a percent, so this patch copies that behavior into RenderTextField::calcMinMaxWidth(). This causes two layout tests to have different layout, but Hyatt thinks the new layout is more correct.
Comment on attachment 7540 [details]
m_minWidth should be 0 for percents
Sweet! Since Hyatt approves the concept, I definitely approve the patch. r=me
I committed the fix. |