Details
-
Type:
New Feature
-
Status: Open
-
Priority:
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:
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.
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
Field | Original Value | New Value |
---|---|---|
Workaround Description |
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; } |
|
Workaround Exists | [Yes] | |
Salesforce Case | [] | |
Fix Version/s | 2.0-Beta2 [ 10242 ] | |
Affects | [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration] |
Salesforce Case | [] | |
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. |
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. |
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 | ||||
![]() |
Salesforce Case | [] | |
Fix Version/s | 1.8.2-EE-GA_P02 [ 10226 ] | |
Affects | [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration] | [Documentation (User Guide, Ref. Guide, etc.)] |
Affects Version/s | 1.8.2-EE-GA_P01 [ 10220 ] | |
Affects Version/s | 2.0-Beta1 [ 10231 ] | |
Assignee | Mark Collette [ mark.collette ] |
Salesforce Case | [] | |
Fix Version/s | 2.0.0 [ 10230 ] | |
Fix Version/s | 1.8.2-EE-GA_P02 [ 10226 ] | |
Fix Version/s | 2.0-Beta2 [ 10242 ] |
Salesforce Case | [] | |
Fix Version/s | 2.1 [ 10241 ] | |
Fix Version/s | 2.0.0 [ 10230 ] |
Fix Version/s | 3.1 [ 10312 ] | |
Fix Version/s | 3.0 [ 10241 ] |
Fix Version/s | 3.2 [ 10338 ] | |
Fix Version/s | 3.1 [ 10312 ] |
Fix Version/s | 3.3 [ 10370 ] | |
Fix Version/s | 3.2 [ 10338 ] |
Fix Version/s | 3.3 [ 10370 ] |
Assignee | Mark Collette [ mark.collette ] |
To fix
ICE-5991, many of these changes have now been made. I did a test, and disabled the following style, to get the menus to do auto-resizing:.iceMnuBarSubMenu, .iceMnuBarVrtSubMenu
{ width:145px; }In fact, the top level menus have always resized, and now the sub-menus will auto-size once the hard-coded width is disabled. Probably some cosmetic padding should be added to the right hand side though.