Closed Bug 327645 Opened 18 years ago Closed 16 years ago

Dynamically setting width on COLGROUP/COL doesn't work when table-layout = "fixed"

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: natehop, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

If a table has its table-layout set to fixed, setting the width on a COLGROUP/COL, whether via style or the width property, doesn't change the visible width.  It appears that the width is applied to the object, but it doesn't repaint until the window has been resized.  If you simpy resize the window the width changes will be drawn correctly.

Reproducible: Always

Steps to Reproduce:
1. Create a table with table-layout set to "fixed", with COLGROUP/COL to control column styles.
2. Dynamically change the width on the COLGROUP/COL via script.
3. The new width will be applied to the object, but the cells controled by the COLGROUP/COL will not be redrawn to reflect the new width.



Expected Results:  
The table cells should visually reflect the new width assigned to the COLGROUP/COL.
Could you attach a testcase that shows the bug?
Component: General → Layout: Tables
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Btw, also happens in Mozilla1.7.12, so no (recent) regression.
This looks to be fixed in Firefox 3 as per the test case.
wfm, the testcase should be reftest
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: