mojira.dev
MC-298456

Elements (buttons, body, inputs...) in Dialogs aren't centered

The problem is here with any Dialog, look at my screen.
With any interface, that’s not a Dialog (like pause menu) it’s centered as it’s expected.

I see the problem since 25w20a.

If you want to see, I can share my dialog command :

Steps to reproduce :

  • Place an Impulse Command Block and place a button on it

  • Put the command in the command block :

dialog show @p { "type": "minecraft:multi_action", "title": { "text": "Happy Ghast", "type": "text", "extra": [ { "text": " Order Menu", "color": "white", "bold": false } ], "color": "#dadada", "bold": true }, "body": { "type": "minecraft:plain_message", "contents": { "text": "Make sure you selected a Happy Ghast if you want to give it orders", "color": "gray" } }, "pause": false, "after_action": "none", "exit_action": { "label": { "text": "Close", "bold": true }, "width": 50 }, "actions": [ { "label": { "text": "Select", "color": "#9e9e9e", "bold": true }, "tooltip": "Select the nearest Happy Ghast in a distance of 100 blocks to give it orders", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 2" } }, { "label": { "text": "See selected", "color": "#9e9e9e", "bold": true }, "tooltip": "Show which Happy Ghast is selected", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 3" } }, { "label": { "text": "Stop", "color": "#d12d2d", "bold": true }, "tooltip": "Prevent the Happy Ghast to move when it is not controlled", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 4" } }, { "label": { "text": "Move", "color": "#0e7ade", "bold": true }, "tooltip": "Allow the Happy Ghast to move again when it is not controlled", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 5" } }, { "label": { "text": "Follow", "color": "#e4af1b", "bold": true }, "tooltip": "Make the Happy Ghast to follow you in a distance of 100 blocks §o(unless if it is stopped)", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 6" } }, { "label": { "text": "Stop Follow", "color": "#e46b1b", "bold": true }, "tooltip": "Stop making the Happy Ghast to following you", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 7" } }, { "label": { "text": "Lock", "color": "#a63939", "bold": true }, "tooltip": "Forbid other entities to ride the Happy Ghast", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 8" } }, { "label": { "text": "Unlock", "color": "#39a639", "bold": true }, "tooltip": "Authorize the other entities to ride the Happy Ghast", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 9" } }, { "label": { "text": "Mount", "color": "#d2a470", "bold": true }, "tooltip": "Make mount the nearest passive mob of the Happy Ghast in a distance of 6.5 blocks of it §o(even if the Happy Ghast is locked, the mob will did'nt be dismounted automatically)", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 10" } }, { "label": { "text": "Dismount", "color": "#b78383", "bold": true }, "tooltip": "Make the other entities/another entity dismounted that are riding the Happy Ghast", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 11" } }, { "label": { "text": "Leash", "color": "#c38a2e", "bold": true }, "tooltip": "Leash the nearest leashable entity of the bottom of the Happy Ghast if you are in a distance of 6.5 blocks of the Happy Ghast and if you have a Lead in your inventory", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 12" } }, { "label": { "text": "Unleash", "color": "#c3672e", "bold": true }, "tooltip": "Unleash the furthest leashed entity from the Happy Ghast if you are in a distance of 6.5 blocks of the Happy Ghast, and it will regives you the Lead", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 13" } }, { "label": { "text": "Teleport", "color": "#9500ff", "bold": true }, "tooltip": "Teleport the Happy Ghast that is at most in a distance of 50 blocks of you to you", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 14" } }, { "label": { "text": "Place Placeable Area", "color": "#34678e", "bold": true }, "tooltip": "Place Structure Voids around that allows you to replace them by another blocks in the sky/void without another blocks around you at the top of the Happy Ghast that is at most in a distance of 8 blocks of you if it have mobs or player on it", "action": { "type": "minecraft:run_command", "command": "/trigger happy_ghast set 15" } } ] }
  • Press the button and look at the dialog interface

Observed result :

No button or text are centered in the screen with other buttons and texts.

Expected result :

I should be all centered in the screen with all buttons and texts.

Environment

Windows 10
Java Edition

Linked issues

Attachments

Comments 2

In the 1st screen it’s the crosshair* not the cursor

This is just MC-297972. You already commented on that report, there was no need to go and make another report for it.

Loupieur

(Unassigned)

Unconfirmed

(Unassigned)

1.21.6 Pre-Release 1

Retrieved