ICEfaces
  1. ICEfaces
  2. ICE-6009

menus auto-adjust width to contain contents.

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.2-EE-GA_P01
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      icefaces 2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      The work-around won't auto-size the menus, but is how you alter the default hard-coded width. In the application style sheet, change the width for the iceMnuBarSubMenu, iceMnuBarVrtSubMenu styles. Or, for XSubMenu, XVrtSubMenu styles, where X is the styleClass specified on the ice:menuBar or ice:menuPopup component.

      .iceMnuBarSubMenu, .iceMnuBarVrtSubMenu {
          width:200px;
      }
      Show
      The work-around won't auto-size the menus, but is how you alter the default hard-coded width. In the application style sheet, change the width for the iceMnuBarSubMenu, iceMnuBarVrtSubMenu styles. Or, for XSubMenu, XVrtSubMenu styles, where X is the styleClass specified on the ice:menuBar or ice:menuPopup component. .iceMnuBarSubMenu, .iceMnuBarVrtSubMenu {     width:200px; }

      Description

      The ice:menuItem and ice:menuPopup components have an issue where menu item widths have to be hard-coded, instead of automatically resizing to their content's widths. That is, all sibling menuItem components should size to the largest width between them all.

      To accomplish this, we'll have to alter the markup we render, and update all of the themes' styling. That could break any custom styling applications have made, so we'll do this in icefaces 2, and mention it in the icefaces 1.8.x -> 2 migration notes. We'll have to evaluate if any compatibility issues will make this a non-starter.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #22258 Mon Aug 30 16:05:25 MDT 2010 mark.collette ICE-6009 : menus auto-adjust width to contain contents
        Files Changed
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.0-beta1.5/icefaces/compat/core/src/main/resources/css/com/icesoft/faces/resources/css/rime/rime.css

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: