Skip to content

Commit 4d99459

Browse files
Lord-McSweeneyDinnerbone
Lord-McSweeney
authored andcommitted
avm2: Add another FIXME to create_text_line
1 parent af878c6 commit 4d99459

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/avm2/globals/flash/text/engine/text_block.rs

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ pub fn create_text_line<'gc>(
6969

7070
display_object.set_text(text.as_wstr(), &mut activation.context);
7171

72+
// FIXME: This needs to use `intrinsic_bounds` to measure the width
73+
// of the provided text, and set the width of the EditText to that.
74+
// Some games depend on this (e.g. Realm Grinder).
75+
7276
let element_format = content
7377
.get_public_property("elementFormat", activation)?
7478
.as_object();

0 commit comments

Comments
 (0)