Opened 8 years ago

Closed 8 years ago

#18183 closed defect (invalid)

Menu: add maxHeight option for context menus

Reported by: Carolyn Scott Owned by: Carolyn Scott
Priority: undecided Milestone: tbd
Component: Dijit Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:


Before dojo 1.9, dojo's context menus (dijit.popup) did not have a vertical scroll bar. The context menu displayed within the browser allowing for all the menu items in the context menu to be visible (with no vertical scroll bar).

In dojo 1.9, the context menu (dijit.popup) now displays exactly where the user right clicked. If context menu is large (and/or the browser is small), then the context menu will have a vertical scrollbar so that the user must scroll in order to access all the menu items in the context menu. (Comment from dijit/popup.js indicates "Limit height to space available in viewport either above or below aroundNode (whichever side has more room), adding scrollbar if necessary.)")

Our customers are complaining about this change in behavior in dojo. They want their context menus as they were before dojo 1.9 with all menu items visible with no vertical scrollbar.

dijit/popup.js open method provides arg.maxHeight for backward compatibility; however, dijit/Menu _openMyself method is calling dijit/ and not providing a way for users to set this maxHeight parameter on the open method of popup.js

Change History (2)

comment:1 Changed 8 years ago by bill

Component: GeneralDijit
Owner: set to Carolyn Scott
Status: newpending
Summary: Vertical scrollbars on context menusMenu: add maxHeight option for context menus

I don't understand, if the menu is taller than the screen, how is it possible to have "all menu items visible with no vertical scrollbar"?

I can see adding the maxHeight option for context menus.

comment:2 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.