Closed Bug 288516 Opened 19 years ago Closed 19 years ago

context menu appears outside screen visible area

Categories

(Firefox :: Menus, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 245163

People

(Reporter: bughunter, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6) Gecko/20050321 Firefox/1.0.2

When using the context menu on the viewport (i.e. right-clicking on the
displayed client-area of the web-page), sometimes my context menu displays
off-screen (the top few items disappear off the top of the screen). I have
installed quite a few developer plugins which add context menu items, and
believe it will only affect people with many plugins.

Reproducible: Always

Steps to Reproduce:
1. Open up a new firefox browser window
2. Size to about 50% height of the screen -=OR=- maximize the window
2.5 If you haven't maximized the window, move it to the top of the screen
3. Right-click on the web-page area of the document, just below the half-way
point for the browser window

*Note: You may have to try slightly lower than 50% depending on the number of
toolbars you have loaded...

Actual Results:  
The context menu was displayed with the first 3 and a bit menu items appearing
above the top of the screen (i.e. not being visible). It takes a little bit of
work to get the distance along the window correct (otherwise the menu is drawn
below the cursor)

Expected Results:  
The context menu should stick with it's current logic for choosing to render
above the cursor or below the cursor depending on the position relative to the
screen, but a check should be done immediately prior to drawing the window to
ensure it is being drawn onto the visible area of the screen. If it is, then do
it, if it isn't, then reposition the window (down in this instance) to ensure it
is fully visible on the screen.

This is more of an irritation than a major bug, as it will probably only impact
users with many plugins (thus additional menu items in the context menu). After
discuassing it in IRC irc.mozilla.org on #qa channel, it should be noted that
scrolling the items on the list would be considered a poor option for menus
which extend beyond the total height of the window.
Dupe of 245163 ?
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6)
Gecko/20050321 Firefox/1.0.2
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.6)
Gecko/20050321 Firefox/1.0.2
> 
> When using the context menu on the viewport (i.e. right-clicking on the
> displayed client-area of the web-page), sometimes my context menu displays
> off-screen (the top few items disappear off the top of the screen). I have
> installed quite a few developer plugins which add context menu items, and
> believe it will only affect people with many plugins.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Open up a new firefox browser window
> 2. Size to about 50% height of the screen -=OR=- maximize the window
> 2.5 If you haven't maximized the window, move it to the top of the screen
> 3. Right-click on the web-page area of the document, just below the half-way
> point for the browser window
> 
> *Note: You may have to try slightly lower than 50% depending on the number of
> toolbars you have loaded...
> 
> Actual Results:  
> The context menu was displayed with the first 3 and a bit menu items appearing
> above the top of the screen (i.e. not being visible). It takes a little bit of
> work to get the distance along the window correct (otherwise the menu is drawn
> below the cursor)
> 
> Expected Results:  
> The context menu should stick with it's current logic for choosing to render
> above the cursor or below the cursor depending on the position relative to the
> screen, but a check should be done immediately prior to drawing the window to
> ensure it is being drawn onto the visible area of the screen. If it is, then do
> it, if it isn't, then reposition the window (down in this instance) to ensure it
> is fully visible on the screen.
> 
> This is more of an irritation than a major bug, as it will probably only impact
> users with many plugins (thus additional menu items in the context menu). After
> discuassing it in IRC irc.mozilla.org on #qa channel, it should be noted that
> scrolling the items on the list would be considered a poor option for menus
> which extend beyond the total height of the window.

(In reply to comment #1)
> Dupe of 245163 ?



*** This bug has been marked as a duplicate of 245163 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
QA Contact: bugzilla → menus
You need to log in before you can comment on or make changes to this bug.