You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Omar LKHLUF (JIRA)" <ji...@apache.org> on 2014/09/01 15:54:21 UTC

[jira] [Commented] (FLEX-34405) CalloutButton shows calloutContents on MouseOver, instead of MouseClick

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

Omar LKHLUF commented on FLEX-34405:
------------------------------------

Hi,

I fixed this on handling initialize event of the CallOutButton with :

protected function callOutInitializeHandler(event:FlexEvent):void
{
	(event.target as CalloutButton).setStyle("rollOverOpenDelay",Number.NaN);
}

> CalloutButton shows calloutContents on MouseOver, instead of MouseClick
> -----------------------------------------------------------------------
>
>                 Key: FLEX-34405
>                 URL: https://issues.apache.org/jira/browse/FLEX-34405
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: Callout / CalloutButton
>    Affects Versions: Apache Flex 4.13.0, Apache Flex 4.12.1
>         Environment: Windows 7
>            Reporter: Deepak MS
>            Assignee: Maurice Amsellem
>              Labels: calloutbutton, mobile
>
> I happened to migrate from 4.12 to 4.12.1. Wherever calloutbutton was used, the callout contents were shown only on click of calloutbutton. But now in 4.12.1, it shows the callout contents as soon as we hover the mouse cursor on top of calloutbutton. When I try to select callout content, it just closes the callout. 
> Issue is CalloutButton shows calloutContents on MouseOver, instead of MouseClick and gets closed on MouseOut. And mouse click has no effect.
> This was using a mobile project, 4.12.1, on windows 7 simulator, using AIR 4, AIR13, AIR14. 
> Sample code to try:
> <?xml version="1.0" encoding="utf-8"?>
> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
> 		xmlns:s="library://ns.adobe.com/flex/spark" title="Home" xmlns:ns="http://flex.apache.org/experimental/ns">
> 	
> 	<s:layout>
> 		<s:VerticalLayout verticalAlign="top" horizontalAlign="left"/>
> 	</s:layout>
> 	<fx:Declarations>
> 		
> 	</fx:Declarations>
> 	
> 	
> 	<s:CalloutButton label="Click">
> 		<s:calloutContent>
> 			<s:List labelField="name">
> 				<s:dataProvider>
> 					<s:ArrayCollection>
> 						<fx:Object name="Name 1"/>
> 						<fx:Object name="Name 2"/>
> 						<fx:Object name="Name 3"/>
> 						<fx:Object name="Name 4"/>
> 						<fx:Object name="Name 5"/>
> 					</s:ArrayCollection>
> 				</s:dataProvider>
> 			</s:List>
> 		</s:calloutContent>
> 	</s:CalloutButton>
> 	
> </s:View>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)