bustardcelly/as3flobile — Issue #8: size issue while creating TextLines
Author: iNDdev7
Created: 2012-02-05 06:37:34+00:00
State: open

In the file com.custardbelly.as3flobile.controls.text.TextArea, the method invalidateTextDisplay() allows negative values to be passed to createTextLine(). E.g.,

_block.createTextLine( null, _width - horizPadding);

will fail if the width is less than the padding. This should be set to a value greater than or equal to zero. E.g.,

var totWid:int = ((_width - horizPadding) > 0) ? (_width - horizPadding) : 0;
var line:TextLine = _block.createTextLine( null, totWid );

There are a few other places where the createTextLine() method is called that have similar concerns, and should be fixed.