Closed
Bug 388112
Opened 18 years ago
Closed 17 years ago
Oversize context menu no longer scrolls, just extends offscreen
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
People
(Reporter: philor, Assigned: enndeakin)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
8.25 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
2.12 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
After the landing of bug 279703, too-large context menus are no longer cropped, with scrolling arrows, they now just extend infinitely offscreen.
STR:
1. If you don't already have it, add the boolean pref extensions.checkCompatibility set to false, so I don't have to repackage my test extension from years ago.
2. Install https://bugzilla.mozilla.org/attachment.cgi?id=182968 which is an extension from bug 283679 that adds a bunch of context menu items when you right click an image (or, the actual user-step, keep installing extension after extension until your context menu's that bloated).
3. Restart, right click an image.
Actual:
The context menu shows, extending off the bottom of the screen with no way to get to the invisible items.
Expected:
At least, the 1.8 behavior of cropping the menu to the size from the click spot to the edge of the screen, with scrolling arrows at each end (and for bonus points, without the bug 283679 behavior of then showing them in context menus that don't need them), or possibly the behavior requested amidst all the spam in bug 245163 of first moving the origin toward the top of the screen, and then only overflowing if the whole menu still won't fit.
Flags: blocking1.9?
Assignee | ||
Comment 1•18 years ago
|
||
Not sure if this is the right fix, and I unfortunately don't remember what this line of code was added for. I don't see any issues myself, but it would need more eyes to do some testing here.
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Flags: blocking1.9? → blocking1.9+
Assignee | ||
Comment 2•18 years ago
|
||
Haven't seen any issues running with this. I suspect I added this line to workaround an issue I ended up fixing a different way.
Attachment #272400 -
Attachment is obsolete: true
Attachment #275620 -
Flags: superreview?(bzbarsky)
Attachment #275620 -
Flags: review?(bzbarsky)
Comment 3•18 years ago
|
||
Comment on attachment 275620 [details] [diff] [review]
include a test
OK, let's give it a shot
Attachment #275620 -
Flags: superreview?(bzbarsky)
Attachment #275620 -
Flags: superreview+
Attachment #275620 -
Flags: review?(bzbarsky)
Attachment #275620 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•17 years ago
|
||
Had to disable one of the tests here, but will investigate it
Flags: in-testsuite+
Assignee | ||
Comment 5•17 years ago
|
||
Attachment #276037 -
Flags: review?(mano)
Comment 6•17 years ago
|
||
Comment on attachment 276037 [details] [diff] [review]
fix the todo line in the test by making sure to add the window offset to the rectangle offsets in every situation
r=mano
Attachment #276037 -
Flags: review?(mano) → review+
Assignee | ||
Comment 7•17 years ago
|
||
Checked in the updated test
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.menus → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•