History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-15509
Type: Minor Enhancement Minor Enhancement
Status: Internal Review Internal Review
Priority: None None
Assignee: Ella Mitelman
Reporter: Peter Flynn
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Flex SDK

Menu (and List) does not give enough control over padding / item spacing

Created: Thursday 07:24 PM   Updated: Friday 01:15 PM
Component/s: mx: Menu, mx: List
Security Level: Public (All JIRA Users )

File Attachments: None
Image Attachments:

1. MenuPadding.png
(4 kb)

Severity: Usability Issue
Reproducibility: Every Time
Discoverability: Medium
Found in Version: SDK Flex 3 (Released)
Affected OS(s): All OS Platforms
Steps to Reproduce:
Steps to reproduce:
1. See attached image. Try to create the top example by adjusting padding on Menu and/or creating a custom item renderer.

Actual Results:
The best you can easily achieve is the bottom example.
List does not support overall padding. It pushes its padding styles onto the individual item renderers. Since the bottom padding of one item is adjacent to the top padding of the next item, the spacing between items is effectively double the spacing at the very top and very bottom.
 
Expected Results:
I should be able to specify the List's padding separately from its items' padding.
It would also be nice to be able to specify spacing/gap between item renderers so that you can edit this without having to create a custom item renderer.

Workaround (if any):
* Use variable row height and create a custom item renderer that increases its reported size if it is the top or bottom item in the list.
* Wrap the List in a container with padding. This is infeasible for Menu, however.
* Create a custom subclass of List or Menu that lays itself out with additional padding.
All of these options require some pretty tricky coding.
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Ella Mitelman
Participants: Ella Mitelman and Peter Flynn


 All   Comments      Sort Order:
Peter Flynn - [05/08/08 07:28 PM ]
Btw, the behavior I'm describing is implemented in List.commitProperties().

Ella Mitelman - [05/09/08 01:15 PM ]
Good to have in Gumbo List