avm2: Add another FIXME to `create_text_line`

This commit is contained in:
Lord-McSweeney 2023-11-04 12:41:33 -07:00 committed by Nathan Adams
parent af878c69b2
commit 4d99459849
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ pub fn create_text_line<'gc>(
display_object.set_text(text.as_wstr(), &mut activation.context); display_object.set_text(text.as_wstr(), &mut activation.context);
// FIXME: This needs to use `intrinsic_bounds` to measure the width
// of the provided text, and set the width of the EditText to that.
// Some games depend on this (e.g. Realm Grinder).
let element_format = content let element_format = content
.get_public_property("elementFormat", activation)? .get_public_property("elementFormat", activation)?
.as_object(); .as_object();