[
https://issues.apache.org/jira/browse/FLEX-23973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447080#comment-13447080
]
Judah Frangipane commented on FLEX-23973:
-----------------------------------------
I would like to open this up as a feature request for a showCaret property on
the ItemRenderer or List. Based on the argument that the list is setting the
showsCaret property I would say that the List should have the showCaret
property.
> showsCaret does not hide caret from custom List ItemRenderer
> ------------------------------------------------------------
>
> Key: FLEX-23973
> URL: https://issues.apache.org/jira/browse/FLEX-23973
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: List
> Affects Versions: Adobe Flex SDK 4.1 (Release)
> Environment: Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Adobe JIRA
>
> Steps to reproduce:
> 1. Create a spark list with a custom item renderer. Use the following as the
> item renderer.
> <?xml version="1.0" encoding="utf-8"?>
> <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx"
> autoDrawBackground="true" width="100%"
> height="50"
> depth="0" depth.hovered="1"
> showsCaret="false">
> <s:states>
> <s:State name="normal" />
> <s:State name="hovered" />
> </s:states>
>
> <s:transitions>
> <s:Transition fromState="normal" toState="hovered"
> autoReverse="true">
> <s:Parallel>
> <s:Rotate3D target="{group}" angleXFrom="0"
> angleXTo="0" angleZFrom="0" autoCenterTransform="true" angleYTo="360"
> angleYFrom="0" autoCenterProjection="true" angleZTo="0"/>
> </s:Parallel>
> </s:Transition>
> </s:transitions>
>
>
> <s:VGroup id="group" height="100%" width="100%">
> <s:HGroup width="100%" height="100%" verticalAlign="middle">
> <s:Label text="{data.show}" />
> <s:Label text="{data.displayName}"/>
> </s:HGroup>
> </s:VGroup>
>
> </s:ItemRenderer>
> 2. In the List deselect any item by setting selectedItem=-1 when an item is
> selected.
> With appropriate data, compile the application and render the list.
> 3. Hover the mouse over an item and select an item.
> 4.
>
> Actual Results:
>
> When the item gets deselected the caret remains.
>
> Expected Results:
> Caret should not be visible since showsCaret is set as false.
>
>
> Workaround (if any):
>
> None known
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira