Closed Bug 431606 Opened 16 years ago Closed 16 years ago

Content Drop-down menus should appear with the parent menu

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: nick.kreeger, Assigned: nick.kreeger)

Details

Attachments

(3 files)

Attached image Screen Shot
From the landing of fixes for bug 374570 and bug 374570, submenus can get drawn incorrectly for content popups.

This happens simply because the y pivot variable gets calculated for the screen-top-twips, rather than the screen-bottom-twips.

This patch affect Songbird since the library view is loaded (as a XUL content page) through the web view. This defect can be easily reproduced (with the attached testcase) for Firefox 3b5.

See attached screenshot.
Attached file Test Case
Here is the test-case, the |nsMenuPopupFrame| patch is coming next.
Assignee: nobody → nick.kreeger
Status: NEW → ASSIGNED
Attached patch Patch V1Splinter Review
Here is the proposed patch - it simply calculates the y-pivot variable based on the bottom-screen-twip rather than the top-screen twip.
Attachment #318721 - Flags: review?
Comment on attachment 318721 [details] [diff] [review]
Patch V1

Looks good to me. I think the patch in bug 84121 was just incorrect. It also changed ySpillage to use screenHeight instead of screenBottom, and that change has been reverted since.
Attachment #318721 - Flags: superreview+
Attachment #318721 - Flags: review?(enndeakin)
Attachment #318721 - Flags: review?
Attachment #318721 - Flags: review?(enndeakin) → review+
Asking for 1.9 approval please!
Flags: wanted1.9.0.x?
Attachment #318721 - Flags: approval1.9?
Comment on attachment 318721 [details] [diff] [review]
Patch V1

a1.9=beltzner
Attachment #318721 - Flags: approval1.9? → approval1.9+
(In reply to comment #5)
> (From update of attachment 318721 [details] [diff] [review])
> a1.9=beltzner 
> 

Thanks Beltzner! I'll land this tomorrow-ish...
Checked into HEAD.. thanks roc, enn, and beltzner!
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
verified fixed using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9pre) Gecko/2008050506 Minefield/3.0pre as well as the Mac Leopard nightly. I verified using the testcase in the bug.
Status: RESOLVED → VERIFIED
Flags: wanted1.9.0.x?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: