Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
flash.text.Textfield selected scrolls down, last line doesn't displayed in some case
Problem Description
when I select the text and move the mouse down, the last line is selected but not visible (flash.text.Textfield doesn't scroll to see the last line) if the mouse is positioned on the right of the textfield.
- all AIR SDK
- Windows and macOS
- all users are affected
Steps to Reproduce
when I select the text and move the mouse down, the last line is selected but not visible (flash.text.Textfield doesn't scroll to see the last line) if the mouse is positioned on the right of the textfield.
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
public class Main extends Sprite
{
public function Main()
{
this.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
}
private function addedToStageHandler(e:Event):void
{
this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var textField:TextField = new TextField();
textField.background = true;
textField.border = true;
textField.type = "input";
textField.wordWrap = true;
textField.multiline = true;
textField.y = 40;
textField.width = 300;
textField.text = "ActionScript provides several ways to format your text at runtime. The TextFormat class lets you set character and paragraph formatting for TextField objects. You can apply Cascading Style Sheets (CSS) styles to text fields by using the TextField.styleSheet property and the StyleSheet class. You can use CSS to style built-in HTML tags, define new formatting tags, or apply styles. You can assign HTML formatted text, which optionally uses CSS styles, directly to a text field. HTML text that you assign to a text field can contain embedded media (movie clips, SWF files, GIF files, PNG files, and JPEG files).";
this.addChild(textField);
}
}
}
Actual result :
Expected result :
Known Workarounds
No workaround