Mojira Archive
MC-161929

Item tooltip displayed outside of the screen when lore is too long

Description:
If the lore on an item in the game is too long the tooltip is displayed partially outside the screen instead of being correctly centered.

This also depends on screen resolution and GUI scale.

Steps to reproduce:
1. Set GUI Scale to 3.
2. Get an item with a long lore:

/give @p stone{display:{Lore:["{\"text\":\"This string is so long that it cannot be shown correctly in the minecraft tooltip! It could be better centered\"}"]}} 1

Expected behavior:
Centered tooltip, or that the tooltip starts from the left side of the screen.

Duplicate

Joakim Andersson

2019-09-27, 11:20 PM

2020-06-11, 01:17 PM

2020-06-11, 01:17 PM

6

4

Confirmed

Normal

UI

1.14.4 - 1.16 Pre-release 21.14.4, 19w39a, 19w45b, 19w46a, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-release 2, 20w06a, 20w07a, 20w11a, 20w17a, 20w19a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2

-