Closed
Bug 46985
Opened 26 years ago
Closed 26 years ago
menupopups are not scrollable with arrow down/arrow up keys
Categories
(Core :: XUL, defect, P3)
Tracking
()
People
(Reporter: janv, Assigned: mikepinkerton)
Details
This is visible when using modern also classic skin.
I mean autoscroll menus and menus with scrollbar
I think we don't check menuitem if it is visible before selecting it
as current menuitem.
I tried add this code to
mozilla/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp on line 909
if ( aMenuItem ) {
--- new code begin ---
nsRect popupRect, itemRect;
GetBounds(popupRect);
nsCOMPtr<nsIBox> itemBox;
aMenuItem->QueryInterface(kIBoxIID, getter_AddRefs(itemBox));
if (itemBox ) {
itemBox->GetBounds(itemRect);
if ( itemRect.y + itemRect.height > popupRect.y + popupRect.height )
printf("need to scroll down\n");
}
--- new code end ---
aMenuItem->SelectMenu(PR_TRUE);
}
it reports when we should scroll down. But I don't know how to do it :)
Comment 1•26 years ago
|
||
I think this is a dup of 43728?
*** This bug has been marked as a duplicate of 43728 ***
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 2•26 years ago
|
||
yes this is dup, sorry
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•