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:17:15 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:16 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 ?

{code:title=Bar.ActionScript|borderStyle=solid}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; 
  }
}
}{code}


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 ?

{code:title=Bar.java|borderStyle=solid}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; 
  }
}
}{code}

> 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