mojira.dev
MCPE-243287

ActionFormData button text truncated with "..." after line break in 26.50

In 26.50, the text of ActionFormData buttons is truncated after the first line break, and "..." is shown. In 26.40 the same button displayed both lines correctly. Still reproducible in 26.52 Hotfix.

Steps to reproduce:

  1. Create an ActionFormData and add a button with a line break in its text:
    form.button("HARUPAY\n残高:8111", "textures/...");

  2. Show the form to a player.

Expected result:
Both lines are displayed on the button, as in 26.40.

Actual result:
Only the first line is displayed and the text ends with "..." (e.g. "HARUPAY...").
The button has enough width for the first line, so this does not look like a simple width overflow.

Notes:

  • The Japanese font also changed in 26.50 (MCPE-239802), but the first line here is short and still gets an ellipsis, so this seems to be a separate issue with multi-line button text.

  • Screenshots attached: 26.40 (2 lines) and 26.50 (truncated).

Attachments

Comments 4

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

Please attach an example add-on that can be used to reproduce the issue.

[media]

Thank you for looking into this. I've attached a minimal add-on that reproduces the issue. How to reproduce: 1. Set the game language to Japanese (日本語). The issue only reproduces with this language setting.

2. Enable the attached add-on in a world.

3. Run "/scriptevent mc:test" in chat and close the chat. The form will open.

4. A button with a line break in its text (“A\nB") shows only the first line followed by "..." in 26.50 and later. In 26.40, both lines are shown. Tested on: Windows 11, 26.52 Hotfix.

This issue has been reviewed by our team.

Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.

If a fix is implemented, it will be listed in our official changelogs.

For major outages or urgent assistance, visit the Minecraft Help Center.

HARUAddons

(Unassigned)

1711517

Confirmed

Windows

Windows 11

26.70.20 Preview, 26.52 Hotfix

Retrieved