Closed Bug 274556 Opened 20 years ago Closed 18 years ago

{inc}Page layout changes when clicking on form buttons

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: r.navalinskas, Assigned: mrbkap)

References

()

Details

(Keywords: testcase, Whiteboard: [reflow-refactor])

Attachments

(3 files)

Sometimes when clicking on "submit" button on some web form, it doesn't work at
once, instead page layout is slightly changed and only next or further next
click on the same button "works". Example:

1. go to http://www.miestai.net
2. On the left side there is some kind of "poll", i.e. web form.
3. Try clicking on buttons "balsuoti" or "rezultatai" and see what happens.

This bug is not new.
I can see the bug, using:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20041213
Firefox/1.0+
Reporter, did you see this bug also with a 1.8a build, or with a 1.7 build?
If this is not happening in a 1.7 build (and I can't see it happening) then this
should be blocking bug 261196. (and this bug needs a minimal testcase).
Can't say regarding 1.7. It was so long ago... About test case - I already
mentioned how to reproduce the problem, is it sufficient ?
With a simplified testcase, I can confirm the bug. It makes it for developers
easy to see where Mozilla is doing something wrong (codewise). I'll try to make
a testcase.

Blocks: 261196
Attached file Testcase
Confirming, although this could be a duplicate, I haven't really looked.
I guess the right component would be Layout->Tables
Status: UNCONFIRMED → NEW
Component: General → Layout: Tables
Ever confirmed: true
Keywords: testcase
Product: Mozilla Application Suite → Core
Version: unspecified → Trunk
Same problem (using the testcase) under Linux/PPC, using Mozilla (CVS checkout
and compiled a few hours ago). Hardware/OS should be set to All/All.
Taking because I'm trying to investigate this. At least one interesting portion
of the reflow log is:
       rowG 03894534 d=1650,840
       rowG 03894534 r=2 a=1575,UC c=1575,UC cnt=310

Note that this is from the incremental reflow and that 1650 is the initial size
desired (the one gained from the initial reflow).
Assignee: general → mrbkap
       rowG 03894534 d=1650,840
       rowG 03894534 r=2 a=1575,UC c=1575,UC cnt=310
There are some things that are not written in the reflow log....
namely after the initial reflow the layout strategy happens see
http://www.mozilla.org/newlayout/doc/table-layout.html
1650 * 0.95 = 1567.5 that makes pixel aligned 1575 twips
so what happens here is some sort of recursion

give a content desired width  take 0.95 of that if you start on the next cycle
with the current width as the desired width and take again 0.95 of that the
table shrinks. One should look at the maximumWidth (m) in the reflow log.
and looking again at the testcase I am wondering whether the behaviour changes
if the float:left is removed from the inner table. In theory there should be no
difference in the rendering.
Blake could you attach the full reflow log (may be splitted as what happens on
load and what happens as a response to pressing the button)?
Attached file The reflow log
There are 3 reflows in the log, the initial reflow, the reflow on mousedown and
the reflow on mouseup.
Blocks: 313195
Summary: Page layout changes when clicking on form buttons → {inc}Page layout changes when clicking on form buttons
Whiteboard: [reflow-refactor]
Doesn't work:
- Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006120606 Minefield/3.0a1 [pre-reflow branch landing]
(clicking button results in page layout changing; not expected)

Does work:
- Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006120804 Minefield/3.0a1 [post-reflow branch landing]
(clicking button results in page layout not changing; expected)

--> RESOLVED FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Depends on: reflow-refactor
Resolution: --- → FIXED
Adding in-testsuite? nomination per bz's request in m.d.t.l. Sorry for the bugspam.
Flags: in-testsuite?
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: