mojira.dev
MC-26757

Large item tooltips can get cut off at the edges of the screen

The Bug:

Large item tooltips can get cut off at the edges of the screen.

Steps to Reproduce:

  • Give yourself an item that has a large tooltip.

/give @s minecraft:dirt{display:{Lore:["{\"text\":\"MC-26757 MC-26757 MC-26757 MC-26757 MC-26757 MC-26757 MC-26757 MC-26757 MC-26757 MC-26757\"}"]}}
  • Hold your mouse cursor over the item in order for its tooltip to be displayed.

  • Take note as to whether or not large item tooltips can get cut off at the edges of the screen.

Observed Behavior:

Item tooltips can get cut off at the edges of the screen.

Expected Behavior:

Item tooltips would not get cut off at the edges of the screen.

Code Analysis:

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 31

not exactly a bug, would be nice if that gets added.

This annoys me so much (especially on servers that have items with long lores).

A temporary workaround is to resize your window temporarily. I think making the window shorter is the way to go.

This is more like a feature request, also Incomplete because abandoned.

Its is also present in the latest stable version (1.8.8).
Also IMHO this should not be treated as a feature request, because its a game defect.

To prove it, I will add two screenshots.

@unknown, I've given you the issue, you're welcome to update and improve it.

21 more comments

Also affects many lines above eachother.

This issue was fixed in 22w42a and is no longer a problem.

It looks like Minecraft since 22w42a moves the hover text to the left border of the screen when there would otherwise not be enough space.

@@unknown, it looks like the general issue described in this report ("large item tooltips can get cut off") can still occur when Minecraft does not wrap the text (which is the case here for item names, as shown in the reproduction steps). But that might be a separate issue, and possibly the Mojang developers might consider that a feature request.

This should be re-opened as the vanilla fix is awful.

 

For people who don't know, in the snapshots, tooltips now just aren't allowed to go off-screen to the left so simply blocks the view of the cursor and can still go off-screen if a line is longer than the screen width.

Not to mention this fix does nothing on the y axis, and tooltips with a lot of lines end up going off-screen at the top.

In that case it is up to the user to move the text to a new line; the new behavior matches bedrock edition.

For the vertical issue, I suggest you create a new report.

Timothy Swan

Avoma

(Unassigned)

Confirmed

Normal

UI

Minecraft 1.6.2, Minecraft 1.8.8, Minecraft 1.11.2, Minecraft 1.13.1, Minecraft 1.13.2, ..., 22w17a, 22w18a, 1.19, 1.19.1, 1.19.2

22w42a

Retrieved