ICEfaces
  1. ICEfaces
  2. ICE-6619

ice:menuBar items drop down overtop of menu when window is shrunken

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2-EE-GA_P02
    • Fix Version/s: EE-1.8.2.GA_P03
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      -

      Description

      The menuBar items do not position themselves correctly in 1.8.2 P02. If you shrink the browser window, the menu items first appear above the menuBar and out of view. When you return to this same menuBar drop down, the menu items then appear over top of the menuBar. Please see attached screen shots and test case.

        Activity

        Hide
        Ken Fyten added a comment -

        Another tweak to the menu positioning logic. I'd suggest that you don't position the menu above the menubar unless it can fit completely in the available space.

        Also, the top of the menu should always be under (or over) the menu-bar, not on top of it.

        Show
        Ken Fyten added a comment - Another tweak to the menu positioning logic. I'd suggest that you don't position the menu above the menubar unless it can fit completely in the available space. Also, the top of the menu should always be under (or over) the menu-bar, not on top of it.
        Hide
        yip.ng added a comment -

        Case in screenshot 1 should not occur. It should always be like screenshot 2. This is yet another bug introduced by the optimizations done in ICE-4106. A value which should be calculated dynamically on the spot was "optimized" to be calculated only at the start of the function.

        In screenshot 2, the menu is not wrongly positioned on top of the menu bar, it is to avoid the menu positioning beyond the top of the viewport. This is a requirement of ICE-3658. Do we want to revert that?

        If the space above is larger than the space below, then better position menu above even if can't fit completely. Ohterwise if the menu bar is close to the bottom of the viewport user would complain again why we don't put the menu above.

        Show
        yip.ng added a comment - Case in screenshot 1 should not occur. It should always be like screenshot 2. This is yet another bug introduced by the optimizations done in ICE-4106 . A value which should be calculated dynamically on the spot was "optimized" to be calculated only at the start of the function. In screenshot 2, the menu is not wrongly positioned on top of the menu bar, it is to avoid the menu positioning beyond the top of the viewport. This is a requirement of ICE-3658 . Do we want to revert that? If the space above is larger than the space below, then better position menu above even if can't fit completely. Ohterwise if the menu bar is close to the bottom of the viewport user would complain again why we don't put the menu above.
        Hide
        Ken Fyten added a comment -

        For screenshot2 (overTop), the current behaviour is to position the submenu overtop of the root menu in order to maximize the amount of the submenu that can be made visible on the page, only in cases where there the sub-menu cannot be fully displayed either below or above the root-menu item. After review, this is judged to be a desirable feature, even if it means that in these cases the sub-menu may not appear in exactly the expected/usual location. It also offers benefits in mobile or limited-screen real-estate environments by ensuring the user will see and be able to use the sub-menu in virtually all cases. There is also precedent for this in desktop UI menu behaviour, where the specific position of a submenu is altered as required to ensure the entire sub-menu is visible on the screen.

        Show
        Ken Fyten added a comment - For screenshot2 (overTop), the current behaviour is to position the submenu overtop of the root menu in order to maximize the amount of the submenu that can be made visible on the page, only in cases where there the sub-menu cannot be fully displayed either below or above the root-menu item. After review, this is judged to be a desirable feature, even if it means that in these cases the sub-menu may not appear in exactly the expected/usual location. It also offers benefits in mobile or limited-screen real-estate environments by ensuring the user will see and be able to use the sub-menu in virtually all cases. There is also precedent for this in desktop UI menu behaviour, where the specific position of a submenu is altered as required to ensure the entire sub-menu is visible on the screen.
        Hide
        yip.ng added a comment -

        Fixed bug that produced screenshot 1.

        Revision: 24528


        Modified : /icefaces/trunk/icefaces/bridge/component/menu.js

        Show
        yip.ng added a comment - Fixed bug that produced screenshot 1. Revision: 24528 Modified : /icefaces/trunk/icefaces/bridge/component/menu.js
        Hide
        Mandeep Hayher added a comment -

        Tested successfully on icefaces1.8 trunk revision# 24720 using FF3.6, IE8 & chrome10.

        Show
        Mandeep Hayher added a comment - Tested successfully on icefaces1.8 trunk revision# 24720 using FF3.6, IE8 & chrome10.

          People

          • Assignee:
            yip.ng
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: