mojira.dev
MC-297977

Dialog columns layout has extra spacing between the grid and the overflow linear layout

I expected that all the buttons in a dialog_list, multi_action, multi_action_input_form would all have equal vertical spacing between them. However when there is a final row that does not match the grid columns count, the game inserts the buttons in an extra horizontal LinearLayout (in DialogScreen#packControlsIntoColumns). This causes some extra space above this final row.

Steps to reproduce

/dialog show @s {"type":"minecraft:dialog_list","title":{"text":"Example"},"button_width":100,"dialogs":["custom_options","custom_options","custom_options","custom_options","custom_options"]}

Attachments

Comments 0

No comments.

Misode

(Unassigned)

Confirmed

Platform

Normal

UI

25w20a

25w21a

Retrieved