Skip to content

Commit 4b20742

Browse files
committed
TextParag performance improved
1 parent 09e2dc5 commit 4b20742

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

appManager/displayContentElemets/TextParag.as

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package appManager.displayContentElemets
22
//appManager.displayContentElemets.TextParag
33
{
4+
import contents.alert.Alert;
5+
46
import flash.display.DisplayObject;
57
import flash.display.MovieClip;
68
import flash.events.Event;
@@ -200,7 +202,7 @@
200202
//trace("TextPutter.lastInfo_numLines : "+TextPutter.lastInfo_numLines);
201203
//trace("!splitIfToLong) : "+(!splitIfToLong));
202204
//trace("addScroller : "+addScroller);
203-
if((!splitIfToLong) && addScroller && TextPutter.lastInfo_numLines>1)//There was 2 instead of 1 here. I don't know why...
205+
if((!splitIfToLong) && addScroller && TextPutter.lastInfo_numLines>1 && TextPutter.lastInfo_realTextHeight>H)//There was 2 instead of 1 here. I don't know why...
204206
{
205207
scrollMC = new ScrollMT(this,new Rectangle(this.x,this.y,W,H),new Rectangle(0,0,W,super.height),false,false,scrollEffect) ;
206208
}

0 commit comments

Comments
 (0)