File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import haxe.ui.assets.FontInfo;
1212import haxe .ui .assets .ImageInfo ;
1313import haxe .ui .util .ByteConverter ;
1414import openfl .Assets ;
15- import openfl .Assets .AssetType ;
15+ import openfl .utils .AssetType ;
1616
1717class AssetsBase {
1818
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ class ComponentBase extends FlxSpriteGroup implements IComponentBase {
120120
121121 while (indexOffset < members .length ) {
122122 if (! Std .is (members [indexOffset ], Component )) indexOffset ++ ;
123+ else break ;
123124 }
124125
125126 insert (index + indexOffset , child );
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ class ScreenBase {
2525
2626 if (options != null && options .container != null ) {
2727 var fg : FlxGroup = options .container ;
28- fg .memberAdded .remove (FlxUIHelper .readyUI );
28+ if (fg .exists ) fg .memberAdded .remove (FlxUIHelper .readyUI );
29+ else options .container = null ; // clean up references to destroyed containers
2930 }
3031
3132 options = tko ;
Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ class TextDisplayBase {
5151
5252 if (_textStyle .color != null ) tf .color = _textStyle .color ;
5353
54- if (_textStyle .width != null ) tf .fieldWidth = tf .width = _textStyle .width ;
55- if (_textStyle .height != null ) tf .textField .height = tf .height = _textStyle .height ;
56-
5754 if (tf .wordWrap != _displayData .wordWrap ) tf .wordWrap = _displayData .wordWrap ;
5855 if (tf .textField .multiline != _displayData .multiline ) tf .textField .multiline = _displayData .multiline ;
5956
You can’t perform that action at this time.
0 commit comments