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
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.
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.
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.
not exactly a bug, would be nice if that gets added.