Closed Bug 180785 Opened 23 years ago Closed 23 years ago

adding empty ul via dhtml does not properly account for bottom margin

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.3alpha

People

(Reporter: will, Unassigned)

References

()

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3a) Gecko/20021118 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3a) Gecko/20021118 This page contains a script that adds an empty ul to a form with a submit button on it. When trying to click the top of the button the screen will redraw moving the button down, but there is no action performed. If the click is low enough then it hits where the redrawn button is and it works Reproducible: Always Steps to Reproduce: 1.Click at top of button Actual Results: The button moves down and there is no submission. Expected Results: Submitted the form.
Attached file page referenced in url (obsolete) —
This is a layout bug. The button moves, so the mouseup is not on the button (unless you drag the pointer there before releasing), so there is no click event on the button. It looks like the <ul>'s bottom margin doesn't kick in properly when it's inserted into the DOM....
Assignee: alexsavulov → block-and-inline
Status: UNCONFIRMED → NEW
Component: Form Submission → Layout: Block & Inline
Ever confirmed: true
OS: Windows NT → All
QA Contact: vladimire → ian
Hardware: PC → All
Summary: adding empty ul via dhtml causes page to not paint correctly → adding empty ul via dhtml does not properly account for bottom margin
Attached file testcase
Attachment #106699 - Attachment is obsolete: true
Oh, setting zero for margin-bottom and a nonzero margin-top does not make this bug appear.
Works for me using my build, so adding dependency on bug 44242.
Depends on: 44242
Fix to bug 44242 checked in to trunk, 2002-11-28 11:29 PST.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.3alpha
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: