-
Bug
-
Resolution: Fixed
-
1.16.1, 1.16.2 Release Candidate 1, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w51a, 21w03a, 21w06a, 21w11a, 1.17, 1.17.1, 1.18.1, 22w05a, 1.18.2, 22w12a, 1.19
-
None
-
Confirmed
-
UI
-
Low
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 Hover text cut off (1.16.2-rc1).mp4.
Reproduction steps
- 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"}}}
- Hover near the middle of the screen over the text
- 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.
- relates to
-
MC-114125 Text wrapping is not working correctly with text consisting of multiple text components
- Resolved
-
MC-234163 The hover text displayed from the traffic light icon in the realms menu can get cut off at the edge of the screen
- Open
-
MC-26757 Large item tooltips can get cut off at the edges of the screen
- Resolved
-
MC-75699 Villager restock hover text is not automatically wrapped making it cut off at edge of screen
- Resolved