ICEfaces
  1. ICEfaces
  2. ICE-8810

Improve ace:subMenu, ace:contextMenu, ace:multiColumnMenu menu positioning logic

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: EE-3.2.0.BETA, EE-3.2.0.GA, 3.3
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces ACE menu components
    • Assignee Priority:
      P2

      Description

      Currently the automatic positioning feature of the ACE menus is a little inconvenience and dumb. Basically, if you open a subMenu, contextMenu, or multiColumnMenu and there isn't enough space available below the root menuItem to display the entire thing, it will be displayed above the root menuItem.

      This is fine so long as there is enough space above the root menuItem to display the entire contents of the subMenu, etc.. However, in many cases the root menuItem is placed near the top of the page, so the subMenu will be clipped by the top of the browser and you will have no way to view the entire contents.

      A better approach is to only display the subMenu, etc. above the root menuItem if there is enough room to display the entire thing, otherwise, revert to displaying it below the root menuItem.

      In addition, if the user specifies a menuPosition via the attribute, that position should ALWAYS be used, regardless of whether there is room for it there or not.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32906 Thu Dec 20 10:18:33 MST 2012 art.zambrano ICE-8810 modification to follow this logic when displaying submenus and horizontal direction is 'auto': if there's enough spece to the right to display the submenu, then display it to the right, otherwise see if there's enough space to the left to display it entirely, if there is, then display it to the left, otherwise just display it to the right
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/menu/menu.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32747 Tue Dec 11 14:55:19 MST 2012 art.zambrano ICE-8810 made modification to follow this logic when displaying submenus and vertical direction is 'auto': if there's enough spece below to display the submenu, display it below, otherwise see if there's enough space above to display it entirely, if there is, then display it above, otherwise just display it below
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/menu/menu.js

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: