You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2014/02/18 07:11:25 UTC

Re: [jira] [Comment Edited] (FLEX-34088) CalloutButton with Dropdown

Callout could check event target?


Sent via the PANTECH Discover, an AT&T 4G LTE smartphone.

"Justin Mclean (JIRA)" <ji...@apache.org> wrote:


    [ https://issues.apache.org/jira/browse/FLEX-34088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903801#comment-13903801 ]

Justin Mclean edited comment on FLEX-34088 at 2/18/14 5:37 AM:
---------------------------------------------------------------

Here's working code showing the issue:

{code}
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:CalloutButton id="button_layout" width="30" height="30" >
                <s:VGroup>
                        <s:DropDownList dataProvider="{new ArrayList([1,2,3,4,5])}" />
                        <s:DropDownList dataProvider="{new ArrayList(['A','B','C','D'])}" />
                        <s:Button />
                        <s:Button />
                </s:VGroup>
        </s:CalloutButton>
</s:Application>
{code}

Issue is because a drop down list  is dispatching a "close" event, which is have the same type text as a callout code event.

While perhaps an easy fix is to change the the callout type to be something else e.g. "CalloutClose" but not sure we can change without breaking user's code.


was (Author: jmclean):
Here's working code showing the issue:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:CalloutButton id="button_layout" width="30" height="30" >
                <s:VGroup>
                        <s:DropDownList dataProvider="{new ArrayList([1,2,3,4,5])}" />
                        <s:DropDownList dataProvider="{new ArrayList(['A','B','C','D'])}" />
                        <s:Button />
                        <s:Button />
                </s:VGroup>
        </s:CalloutButton>

</s:Application>


Issue is because a drop down list  is dispatching a "close" event, which is have the same type text as a callout code event.

While perhaps an easy fix is to change the the callout type to be something else e.g. "CalloutClose" but not sure we can change without breaking user's code.

> CalloutButton with Dropdown
> ---------------------------
>
>                 Key: FLEX-34088
>                 URL: https://issues.apache.org/jira/browse/FLEX-34088
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: CalloutButton
>    Affects Versions: Apache Flex 4.11.0
>         Environment: windows7, flashbuilder 4.7
>            Reporter: Fabiano Citrone
>
> after select an item in the first dropdown, the calloutbutton closes not allowing me to enter the second
> <s:CalloutButton id="button_layout" width="30" height="30" >
> <s:VGroup>
> <s:Dropdown.....
> <s:Dropdown.....
> </s:VGroup>
> </s:CalloutButton>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Re: [jira] [Comment Edited] (FLEX-34088) CalloutButton with Dropdown

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> Callout could check event target?

Target isn't the dropdown list it's the item renderer which makes it a little tricky.

Justin