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:13:13 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:12 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 ?

{quote}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; 
  }
}
}{quote}


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

> 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