Closed Bug 289830 Opened 19 years ago Closed 19 years ago

Big popup menu may overflow screen

Categories

(Firefox :: Menus, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 245163

People

(Reporter: tonymec, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050410 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050410 Firefox/1.0.3

Depending in part on which extensions are active, a context menu (for instance
for an image which is also a link) may become very large (i.e., have a large
number of menu items). In that case, unless the right-click is near the top or
the bottom of the screen, the menu will overflow the top of the display screen,
making its first items inaccessible.

Reproducible: Always

Steps to Reproduce:
1. Make sure that enough extensions providing right-click context menu items for
links or images are installed. I am using the ones listed below, each of which
contributes one or more lines of context menu; you may reproduce it with a
different set, the important thing is to have many menu items for "image links".
- Adblock
- DeviantLink
- Duplicate Tab
- ieview
- Image Zoom (this one adds many items)
- Print Preview
- ViewSourceWith

2. Open a web page with images which are also links, at least one of which is
vertically near the middle of the display (i.e., neither at top nor at bottom).
I suggest http://www.deviantart.com/ (scroll to bring a clickable image near the
middle).

3. Right-click one such "image link" near the middle of the page.

Actual Results:  
The context menu appears with its last line at the mouse cursor and its first
lines inacessible, overflowing past the top of the display.

Expected Results:  
Possibility 1: open the context menu with one of its middle lines near the mouse
cursor, in order to have the whole menu fit within the display screen

Possibility 2: open several columns of context menu, so that all lines of all
columns would fit on-screen.

I am experiencing this bug with tye latest Firefox aviary nightly on Windows XP
but somehow I feel that it would happen on any platform, with all versions of
Firefox and possibly Seamonkey, as soon as the combined length of the context
menus for "links" and for "images" becomes large enough (in my case, 35 lines
including separators).

Reviewer may want to change Platform/OS to all/all and/or attribute this bug to
a different component.
Workaround: The problem can be somewhat alleviated by editing userChrome.css as
follows:

/*
 * Make all menus smaller than the default
 * to make them fit easier on-screen
 */
menubar, menubutton, menulist, menu, menuitem, menupopup {
  font-size: 7pt !important
}

However, to make it disappear completely it might be necessary to use fonts too
small to be legible.
This is already fixed and will be available in Firefox 1.1

*** 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.