[MC-6866] Text can extend beyond the edges of some GUIs Created: 10/Jan/13  Updated: 07/Dec/24

Status: Open
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w02a, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.2, Snapshot 13w18c, Snapshot 13w19a, Minecraft 1.7.4, Minecraft 14w08a, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.8, Minecraft 15w47c, Minecraft 1.9 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w02a, Minecraft 1.13-pre6, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, 1.15.1, 1.15.2 Pre-Release 1, 1.15.2, 20w13b, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Release Candidate 2, 1.17, 1.17.1, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Release Candidate 3, 1.18, 1.18.1, 22w03a, 22w05a, 22w06a, 22w07a, 1.18.2 Release Candidate 1, 1.18.2, 22w11a, 22w12a, 22w13a, 22w14a, 1.19 Pre-release 1, 1.19, 1.19.1, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.4, 23w51b, 1.20.6, 24w19b, 1.21, 1.21.1, 24w36a, 1.21.2 Pre-Release 3, 1.21.3, 1.21.4
Fix Version/s: None

Type: Bug
Reporter: [Mod] Avoma Assignee: Unassigned
Resolution: Unresolved Votes: 29
Labels: None

Attachments: PNG File 2013-01-10_23.11.08.png     PNG File 2018-07-08_11.08.16.png     File MC-6866.mp4     PNG File MC-6866.png     PNG File horse™.png    
Issue Links:
Duplicate
is duplicated by MC-248880 Name overflow when a horse has a 32+ ... Resolved
is duplicated by MC-263559 Unadapted villager name Resolved
Relates
relates to MC-5018 Wide characters (e.g. Tildes ~) overf... Resolved
CHK:
Confirmation Status: Confirmed
Category:
UI
Mojang Priority: Low
Area: Platform

 Description   

The Bug:

Text can extend beyond the edges of some GUIs.

For a bit of context, this issue can be seen within the chest GUI, shulker box GUI, named entity GUIs, etc...

Steps to Reproduce:

  1. Give yourself a chest with a custom name that's relatively long by using the command provided below.
    /give @s minecraft:barrel[minecraft:custom_name='[{"text":"MC-6866 MC-6866 MC-6866 MC-6866 MC-6866","italic":false}]']
  2. Place down the chest, open it, and look at the title within its GUI.
  3. Take note as to whether or not text can extend beyond the edges of some GUIs.

Observed Behavior:

Text can exceed the right edges of some GUIs.

Expected Behavior:

The text would be truncated with an ellipsis.



 Comments   
Comment by boda kugga [ 10/Aug/23 ]

This became a concern for translations as boats now use the full item name due to the fix of MC-256466. Minecart variants also now use item names instead of entity names (which could be shortened as they are only seen in command suggestion tooltips otherwise). As said by Dhranios, an ideal fix would be having scrolling text at least in GUI titles and status effect bars in the inventory.

Comment by user-f2760 (Inactive) [ 10/Aug/23 ]

This actually affects pretty much every gui, and translations can be problematic because of this.

Suggested fix: make text scroll, just like UI buttons/sliders.

Comment by A user [ 06/Mar/22 ]

Can confirm in 1.18.2. Plus it also happens on the horse inventory GUI, as shown in MC-248880

Comment by [Mod] Avoma [ 01/Oct/21 ]

I'd like to request ownership of this ticket since the current reporter has been inactive for over a year. I'm willing to keep this ticket updated and will continue to provide all of the necessary details.

Comment by [Mod] Avoma [ 04/Feb/21 ]

Can confirm in 21w05b.

Comment by [Mod] Avoma [ 02/Dec/20 ]

Can confirm in 20w49a.

Comment by [Mod] Avoma [ 25/Nov/20 ]

Can confirm in 20w48a.

Comment by Oval [ 16/Jan/20 ]

Done. I originally intended to use /give as changing the limit of the anvil would be mentioned quite quick on the tracker, so then I could update these.

Comment by Fabian Röling [ 16/Jan/20 ]

Oval Can you please revert your last edit? The point of this report is that the anvil allows names that overflow the chest's name field. Commands allow arbitrarily long names anyway. The current reproduction steps are WAI.

Comment by Kraif [ 30/Aug/18 ]

Confirmed for 1.13.1.

Comment by Fabian Röling [ 20/Aug/16 ]

What exactly would be a correct behaviour?

  • Only allow 28 symbols for everything in an anvil?
  • Only allow 28 symbols if the item is a chest?
  • Make the font a bit smaller with there are 29 or 30 symbols as the chest's name?
  • Cut off the last two symbols?
  • Give out an additional warning in the anvil?
  • ...
Comment by [Mod] Michael Wobst [ 19/Aug/16 ]

Still an issue in 16w33a

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1

Comment by WolfieMario [ 02/May/13 ]

I should mention that you don't hit the limit even with 30 characters if you use narrow ones such as i. Rather than reducing the maximum length of name, perhaps the same width calculation books perform could be used to determine what is or is not too long?

This is similar to the bug with ~ on signs, and I doubt anybody would ask them to reduce the maximum amount of characters that can go on a sign.

Comment by Kumasasa [ 10/Jan/13 ]

Confirmed.

Generated at Sun Jan 12 12:12:37 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.