mojira.dev
MC-61489

Book GUI is not vertically centered

The Bug:

The book Gui displays at the top of the screen. This is kinda annoying and seems like a bug. This happends since the Writing Book gets added.

Steps to Reproduce:

  1. Obtain a book and quill.

  2. Set your GUI scale to a small value, for example, "1".

  3. Open the book and quill.

  4. Take note as to whether or not the book GUI is vertically centered.

Observed Behavior:

The book GUI isn't vertically centered.

Expected Behavior:

The book GUI would be vertically centered.

Code Analysis:

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

Linked issues

Attachments

Comments 28

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

Confirmed in 1.15.2 and 20w22a.

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w06a.

18 more comments

Can confirm in 22w18a.

Can confirm in 1.19.

Can confirm in 1.19.2.

Can confirm in 1.19.3.

This seems like a very simple fix. Doing a quick test in fabric seems to reveal the following change: https://gist.github.com/mworzala/9a8d86803784c9c81aac77d9a7f9fb2b. Obviously naming would be slightly different in a non-decompiled copy, but it should be very similar.

Attached an image of it.

yosolomeoparedes

Avoma

(Unassigned)

Confirmed

Platform

Low

UI

GUI

Minecraft 1.7.10, Minecraft 14w28a, Minecraft 14w28b, 1.15.2, 20w22a, ..., 1.21.4, 25w08a, 1.21.5, 1.21.6, 1.21.7

Retrieved