Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-161929

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.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
    • None
    • Confirmed
    • UI
    • Normal

      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.

            Unassigned Unassigned
            Jocke155 Joakim Andersson
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: