Closed Bug 162268 Opened 22 years ago Closed 20 years ago

Reflow with table + fieldset every time a <input type="submit"> is clicked

Categories

(Core :: Layout, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: burnus, Assigned: john)

References

Details

(Keywords: testcase)

Attachments

(2 files)

This is Mozilla 1.1b; Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b)
Gecko/20020809.

I have a <fieldset> which is embedded in <table>. If the window width is smalle
than the maximum size needed, then the formset size shrinks causing a reflow
every time I click 'submit'. (If I cancel the submit by moving the mouse cursor
out of the button I can repeat this several times)

Testcase + instruction to come.
To layout.  This is not submission.
-> Layout (per comment #2)
Component: Form Submission → Layout
reassign for real
Assignee: alexsavulov → attinasi
QA Contact: vladimire → petersen
Dupe of bug 149734?

pi
-> jkeiser
Assignee: attinasi → jkeiser
Priority: -- → P3
Target Milestone: --- → Future
*** Bug 208855 has been marked as a duplicate of this bug. ***
I had a look at this bug and the best I could get without getting confused was

/layout/html/forms/src/nsFieldSetFrame.cpp line #475~

The call to ReflowChild returns a different value for kidDesiredSize.width, I'm
presuming that this ends up with the wrong MEW being reported to the parent.

I tried bz's patch in http://bugzilla.mozilla.org/show_bug.cgi?id=129346 just in
case.
Blocks: 250345
No longer blocks: 250345
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0

I think the behaviour exhibited by this test case fits this bug - the fieldset
will expand if you change the selected option or click on the button (which
causes expansion on both mousedown and mouseup). On my machine, this expansion
only happens twice, after which the width of the table cell containing "Cell 2"
has become as small as possible.

This behaviour doesn't occur if:
- You don't specify a width for the table.
or
- You specify a width for the fieldset in pixels.
This is wfm with a current trunk build winxp 2004111204.

Jonathan could you please retest with a current trunk build. ( I think, I did
fix this on trunk)
Retested with trunk build 2004111904 on winxp.

It does appear to be fixed - both test cases wfm.

Definately fixed on trunk.
WFM, 2004-12-29-05 trunk Linux.

-> WORKSFORME
Status: NEW → RESOLVED
Closed: 20 years ago
Keywords: testcase
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: