mojira.dev
MC-238712

Long titles, action bars, held item tooltips, and subtitles get cut off at the edges of the screen

The Bug:

Long titles, action bars, held item tooltips, and subtitles get cut off at the edges of the screen.

Steps to Reproduce:

  1. Display a long title by using the command provided below.

    /title @a title {"text":"MC-238712 MC-238712 MC-238712 MC-238712 MC-238712"}
  2. Observe if all the text fits on the screen.

Observed Behavior:

The said text gets cut off at the edges of the screen.

Expected Behavior:

The said text would not get cut off at the edges of the screen.

Attachments

Comments 8

Can confirm this behavior. This also affects other titles such as action bar and subtitle text. Here are some extra details regarding this issue.

The Bug:

Titles, action bars, and subtitles that contain lots of text can get cut off at the edges of the screen.

Steps to Reproduce:

  • Display a title that contains lots of text within it.

/title @a title {"text":"MC-238712 MC-238712 MC-238712 MC-238712 MC-238712","color":"white"}
  • Look at the edges of your screen.

  • Take note as to whether or not titles, action bars, and subtitles that contain lots of text can get cut off at the edges of the screen.

Observed Behavior:

Titles, action bars, and subtitles that contain lots of text can get cut off at the edges of the screen.

Expected Behavior:

Titles, action bars, and subtitles that contain lots of text would not get cut off at the edges of the screen.

Can confirm in 1.18.2 and 22w14a.

Can confirm in 1.19.

The only fix I can see happening for this is that the font size gets reduced until the total width is not more than screen width.

Alternatively, automatic line wrapping could be introduced.

That will cause the title to flow over/onto the subtitle and action bar though.

In that case, the subtitle would have to be moved downwards to account for the additional line of title text. For actionbar text, the text itself would be moved up a line so to avoid overlapping the hotbar etc.

Can confirm in 1.19.1. This also affects held item tooltips.

[media]

Tan Choon Yong

Avoma

(Unassigned)

Confirmed

Platform

Normal

Rendering

1.17.1, 1.18.1, 1.18.2, 22w14a, 1.19, ..., 23w14a, 1.20.1, 24w19b, 1.21, 1.21.4

Retrieved