Programmatically created text fields get a biased depth.
This commit is contained in:
parent
75aaa49169
commit
7a62a8e9ce
|
@ -539,7 +539,11 @@ fn create_text_field<'gc>(
|
|||
context.gc_context,
|
||||
&instance_name.coerce_to_string(avm, context)?,
|
||||
);
|
||||
movie_clip.add_child_from_avm(context, text_field, depth as Depth);
|
||||
movie_clip.add_child_from_avm(
|
||||
context,
|
||||
text_field,
|
||||
(depth as Depth).wrapping_add(AVM_DEPTH_BIAS),
|
||||
);
|
||||
text_field.post_instantiation(avm, context, text_field, None, true);
|
||||
|
||||
if avm.current_swf_version() >= 8 {
|
||||
|
|
Loading…
Reference in New Issue