Closed Bug 276878 Opened 20 years ago Closed 20 years ago

drop-down menus do not line up below the menu item to which they belong

Categories

(Firefox :: Toolbars and Customization, defect)

x86
BeOS
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 276278

People

(Reporter: doug, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (BeOS; U; BeOS BePC; en-US; rv:1.8a6) Gecko/20041227 Firefox/1.0+
Build Identifier: Mozilla/5.0 (BeOS; U; BeOS BePC; en-US; rv:1.8a6) Gecko/20041227 Firefox/1.0+

When clicking on any menu-bar item or drop-down on a web page, the associated
drop-down menu appears somewhere else on the screen.  BeOS code translates
between window-relative and screen-relative addressing.  It appears this is no
longer necessary.  Removing the BeOS-specific code resolves this issue.  See URL
above for more details.

Reproducible: Always

Steps to Reproduce:
1.move Firefox window somewhere other than top-left corner of desktop
2.click on "File" toolbar entry


Actual Results:  
drop-down appears offset down and to the right of proper position

Expected Results:  
drop-down should appear directly below the "File" tool-bar entry
Blocks: 266252
That's follow-up for fixes already made in other platforms.
Fix is simple, we don't need anymore to recalculate pop-up window coordinates in
nsWidget platform implementation to screen coordinates from top-window relative
coordinates.
Thus, we only to remove from
mozilla/widget/src/beos/nsWindow.cpp
nsWindow::Move(PRInt32 aX, PRInt32 aY) method 
statement 

if (mWindowType == eWindowType_popup && mBorderlessParent)
{
BPoint p = mBorderlessParent->ConvertToScreen(BPoint(aX,aY));
aX = (nscoord)p.x;
aY = (nscoord)p.y;
}
Status: UNCONFIRMED → NEW
Ever confirmed: true
I already created a bug for this: refer to bug 276278. I'll post a patch there ASAP.

*** This bug has been marked as a duplicate of 276278 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Sorry for the duplicate - I don't know how I missed the original.
Status: RESOLVED → VERIFIED
QA Contact: bugzilla → toolbars
You need to log in before you can comment on or make changes to this bug.