Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Fix Version/s: 3.0.1, EE-3.0.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
Feature Request: Add the ability to force the contextMenu to display in a certain direction regardless of where it is positioned in regards to the browser edges (top, bottom, left, right).
This could be accomplished by adding a new attribute "position", which would accept the following values:
auto - automatically position based on the available window real estate to maximize the amount of the menu that can be seen without scrolling (default).
top - always open the contextMenu above the target element.
bottom - always open the contextMenu below the target element.
In all cases, the automatic logic for left or right placement would still apply to maximize the amount of the menu that can be seen without scrolling.
This could be accomplished by adding a new attribute "position", which would accept the following values:
auto - automatically position based on the available window real estate to maximize the amount of the menu that can be seen without scrolling (default).
top - always open the contextMenu above the target element.
bottom - always open the contextMenu below the target element.
In all cases, the automatic logic for left or right placement would still apply to maximize the amount of the menu that can be seen without scrolling.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Fixed at revision 28041 in the trunk and at revision 28042 in the maintenance branch.
Added new 'direction' attribute to ace:contextMenu, with possible values 'up' and 'down'. Also added a 'direction' attribute to ace:menuBar with possible values 'up', 'down', 'left' and 'right'.
Couldn't use 'position' because there was already another attribute with that name in ace:menu.