flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pol poggi (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-34632) Android spark Textarea and spark.skins.mobile.TextAreaSkin : text overlaps near line 750 and after
Date Fri, 05 Dec 2014 12:08:12 GMT

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

pol poggi edited comment on FLEX-34632 at 12/5/14 12:07 PM:
------------------------------------------------------------

I need to use htmlText and some events not available with StageText. 
I can't reproduce this bug with a flash.text.TextField, the scrolling speed is slower in a
flash.text.TextField, is-it possible to change the velocity scrolling ?

package{<br>import&nbsp;flash.text.TextField;<br>import&nbsp;flash.text.TextFormat;<br>import&nbsp;flash.display.Sprite;<br>import&nbsp;flash.events.Event;<br>import&nbsp;flash.display.StageAlign;<br>import&nbsp;flash.display.StageScaleMode;<br>import&nbsp;flash.events.SoftKeyboardEvent;<br>import&nbsp;flash.net.URLLoader;<br>import&nbsp;flash.net.URLRequest;<br>&nbsp;&nbsp;<br>public&nbsp;class&nbsp;Main&nbsp;extends&nbsp;Sprite&nbsp;{<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;private&nbsp;var&nbsp;myTextField:TextField&nbsp;=&nbsp;new&nbsp;TextField();<br>&nbsp;&nbsp;public&nbsp;function&nbsp;Main()&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;stage.scaleMode&nbsp;=&nbsp;StageScaleMode.NO_SCALE;<br>&nbsp;&nbsp;&nbsp;&nbsp;stage.align&nbsp;=&nbsp;StageAlign.TOP_LEFT;<br>&nbsp;&nbsp;&nbsp;&nbsp;addEventListener(Event.ADDED_TO_STAGE,&nbsp;init);<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;private&nbsp;function&nbsp;init(event:Event):void&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.type="input";<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.border=true;<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.width=800;<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.height=1600;<br>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;format:TextFormat&nbsp;=&nbsp;new&nbsp;TextFormat();<br>&nbsp;&nbsp;&nbsp;&nbsp;format.size&nbsp;=&nbsp;36;<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.defaultTextFormat&nbsp;=&nbsp;format;<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.addEventListener(&nbsp;SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE,&nbsp;skbAct&nbsp;);<br>
myTextField.addEventListener(&nbsp;SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE,&nbsp;skbDeact&nbsp;);&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;addChild(myTextField);<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;urlLoader:URLLoader&nbsp;=&nbsp;new&nbsp;URLLoader();<br>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;fichier:URLRequest&nbsp;=&nbsp;new&nbsp;URLRequest("http://www.adobe.com/products/air.html");<br>&nbsp;&nbsp;&nbsp;&nbsp;urlLoader.addEventListener(&nbsp;Event.COMPLETE,&nbsp;chargementComplet&nbsp;);<br>&nbsp;&nbsp;&nbsp;&nbsp;urlLoader.load(&nbsp;fichier&nbsp;);<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;private&nbsp;function&nbsp;chargementComplet(pEvt:Event):void&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.text&nbsp;=&nbsp;pEvt.target.data;<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;private&nbsp;function&nbsp;skbAct(&nbsp;event:Event&nbsp;):void&nbsp;<br>&nbsp;&nbsp;{&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.height=800;&nbsp;<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;private&nbsp;function&nbsp;skbDeact(&nbsp;event:Event&nbsp;):void&nbsp;<br>&nbsp;&nbsp;{&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;myTextField.height=1600;&nbsp;<br>&nbsp;&nbsp;}<br>}<br>}


was (Author: pol2095):
I need to use htmlText and some events not available with StageText. 
I can't reproduce this bug with a flash.text.TextField, the scrolling speed is slower in a
flash.text.TextField, is-it possible to change the velocity scrolling ?

package
{
import flash.text.TextField;
import flash.text.TextFormat;
import flash.display.Sprite;
import flash.events.Event;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.SoftKeyboardEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;

public class Main extends Sprite
{
private var myTextField:TextField = new TextField();
public function Main()
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(event:Event):void
{
myTextField.type="input";
myTextField.border=true;
myTextField.width=800;
myTextField.height=1600;
var format:TextFormat = new TextFormat();
format.size = 36;
myTextField.defaultTextFormat = format;
myTextField.addEventListener( SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, skbAct );
myTextField.addEventListener( SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, skbDeact ); 
addChild(myTextField);

var urlLoader:URLLoader = new URLLoader();
var fichier:URLRequest = new URLRequest("http://www.adobe.com/products/air.html");
urlLoader.addEventListener( Event.COMPLETE, chargementComplet );
urlLoader.load( fichier );
}
private function chargementComplet(pEvt:Event):void
{
myTextField.text = pEvt.target.data;
}
private function skbAct( event:Event ):void 
{ 
myTextField.height=800; 
}
private function skbDeact( event:Event ):void 
{ 
myTextField.height=1600; 
}
}
}

> Android spark Textarea and spark.skins.mobile.TextAreaSkin : text overlaps near line
750 and after
> --------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-34632
>                 URL: https://issues.apache.org/jira/browse/FLEX-34632
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: Text, Spark: TextArea
>    Affects Versions: Apache Flex 4.13.0
>         Environment: Android Nexus 5 Air 15
>            Reporter: pol poggi
>            Assignee: OmPrakash Muppirala
>         Attachments: screenshot-1.png
>
>   Original Estimate: 10.2h
>  Remaining Estimate: 10.2h
>
> Hello,
> On my Nexus 5, the text overlaps in a spark Textarea with spark.skins.mobile.TextAreaSkin
near line 750 and after (ScrollBar near 25% height)
> <?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"
> 	creationComplete="creationCompleteHandler(event)">
> 	<fx:Script>
>     <![CDATA[
> 	import mx.events.FlexEvent;
> 	private function creationCompleteHandler(event:FlexEvent):void 
> 	{
>     var urlLoader:URLLoader = new URLLoader();
> 	var fichier:URLRequest = new URLRequest("http://www.adobe.com/products/air.html");
> 	urlLoader.addEventListener( Event.COMPLETE, chargementComplet );
> 	urlLoader.load( fichier );
> 	}
> 	private function chargementComplet(pEvt:Event):void {
> 	myTextField.text = pEvt.target.data;
> 	}
> 	private function skbAct( event:Event ):void 
> 	{ 
> 	myTextField.height=800; 
> 	}
> 	private function skbDeact( event:Event ):void 
> 	{ 
> 	myTextField.height=1600; 
> 	} 
>     ]]> 
> 	</fx:Script>
> 	<fx:Style>
> 	@namespace s "library://ns.adobe.com/flex/spark";
> 	s|TextArea{
> 	skinClass: ClassReference("spark.skins.mobile.TextAreaSkin");
> 	}
> 	</fx:Style>	
> 	<s:TextArea width="800" height="1600" id="myTextField" softKeyboardActivate="skbAct(event)"
softKeyboardDeactivate="skbDeact(event)"/>
> </s:Application>
> Thanks



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

Mime
View raw message