mojira.dev
MCPE-217394

"Game is paused" text can overflow

How to replicate:

  1. Select german as your games language

  2. make sure game pausing feature is enable if it isn’t already

  3. join a world and pause the game

  4. look at the game is paused indicator

Why is it happening

The width of the container isn’t hardcoded, but the width of the text panel is (the code from bedrock samples 1.21.70.3):

  "[email protected]_background": {
    "size": [ 90, 24 ],
    "$screen_background_alpha": 0.5,
    "controls": [
      {
        "pause@paused_text": {}
      }
    ]
  }

the width shouldn’t be hardcoded. A possible fix would be replacing "size": [ 90, 24 ],with something like "size": [ "100%c + 5px", 24 ],
Expected result
The black box should contain the entire text.

Observed result
The black box does not contain the entire text (see attachment)

Linked issues

Attachments

Comments 0

No comments.

Coolbep

(Unassigned)

1407291

Community Consensus

Multiple

1.21.72 Hotfix, 1.21.80.28 Preview

1.21.90, 1.21.90.25 Preview

Retrieved