mojira.dev
MC-197476

Some hover texts are wrapped too late making them cut off at edge of screen

The bug

While hover texts created using hoverEvent by /tellraw in chat or in written books are wrapped if necessary (unlike villager restock hover text (MC-75699) or item tooltips (MC-26757)), they are sometimes wrapped too late making the hover text box too large and resulting in it being cut off.

See

[media]

.

Reproduction steps

  1. Use the following command

    /tellraw @s {"text":"hover hover hover hover hover hover hover hover","hoverEvent":{"action":"show_text","contents":{"text":"mm mm mmm mmm mmm mmmm mmmm mmmm mmmmm mmmmm mmmmm mmmmmm mmmmmm mmmmmm mmmmmmm mmmmmmm mmmmmmm mmmmmmmm mmmmmmmm mmmmmmmm"}}}
  2. Hover near the middle of the screen over the text

  3. Move your mouse slowly towards on of the horizontal edges of the screen
    ❌ The hover text is cut off

Note: You might have to adjust the GUI scale or change the window width to reproduce this issue.

Attachments

Comments 12

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 21w11a.

Can confirm in 1.17.

2 more comments

In this example, even if this was fixed, it would then be cut off on the other end.

Can confirm in 1.18.2 and 22w12a.

Can confirm in 1.19.

@@unknown, would you like to become the reporter, so that you can update the affected versions yourself? However, you can at any point inform us if you don't want to be the reporter anymore (or just stop updating the report).

This issue was present in 1.19.2 but does no occur in 22w42a. (This issue was fixed in 22w42a).

marcono1234

(Unassigned)

Confirmed

Low

UI

1.16.1, 1.16.2 Release Candidate 1, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, ..., 1.18.1, 22w05a, 1.18.2, 22w12a, 1.19

22w42a

Retrieved