ICEfaces
  1. ICEfaces
  2. ICE-5429

Display Menu items in a proper position when there's no enough space on the right and left

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.2, 1.8.2-EE-GA
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces-ee-1.8.2 revision 20758

      Description

      When menu items do not have enough space to display to the right of the menu bar, they are adjusted to display to the left of the menu bar, which does not have problem if there's enough space on the left. In this case, a very long menu bar is created by defining the style attribute. If the browser window is resized to leave no space on the right to display the menu items, they are pushed to be displayed on the left. But now there's no enough space on the left, either, which makes the menu items not quite visible. Code to reproduce:

      <ice:menuBar id="menu2" orientation="vertical" >
      <ice:menuItem id="item21" value="Test" style="width:1000px;height:100px;" icon="./images/icon_demo.gif">
      <ice:menuItem id="item22" value="Edit" />
      <ice:menuItem id="item23" value="View" />
      </ice:menuItem>
      </ice:menuBar>

      Or use test app ICE-5289 (repo\qa\trunk\Regression\ICE-5289)

        Activity

        Hide
        Ken Fyten added a comment -

        It's not clear what the correct behavior should be in this case. If there's not enough room for the menuitems, then the user will have to scroll or resize the browser window anyway.

        Show
        Ken Fyten added a comment - It's not clear what the correct behavior should be in this case. If there's not enough room for the menuitems, then the user will have to scroll or resize the browser window anyway.
        Hide
        Deryk Sinotte added a comment -

        Assigned to Ken for re-assignment to component team if necessary.

        Show
        Deryk Sinotte added a comment - Assigned to Ken for re-assignment to component team if necessary.

          People

          • Assignee:
            Unassigned
            Reporter:
            Joanne Bai
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: