Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-258

Most text boxes / chat / scroll bars revert when the window changes size, fullscreen mode is toggled, or fullscreened game is tabbed into

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.13-pre3
    • Minecraft 1.4.1, Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.4, Minecraft 1.4.5, Snapshot 12w50b, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w03a, Snapshot 13w07a, Minecraft 1.5, Snapshot 13w11a, Snapshot 13w16a, Minecraft 1.5.2, Snapshot 13w18c, Snapshot 13w19a, Snapshot 13w24a, Snapshot 13w24b, Snapshot 13w25a, Snapshot 13w25b, Snapshot 13w25c, Snapshot 13w26a, Minecraft 1.6, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w36b, Minecraft 13w37a, Minecraft 13w37b, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 13w39b, Minecraft 13w41a, Minecraft 13w41b, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w47a, Minecraft 13w47b, Minecraft 13w47c, Minecraft 13w48a, Minecraft 13w48b, Minecraft 13w49a, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w03b, Minecraft 14w04b, Minecraft 14w05b, Minecraft 14w06a, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w10b, Minecraft 14w10c, Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w21b, Minecraft 14w28a, Minecraft 14w28b, Minecraft 14w34c, Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.2-pre5, Minecraft 1.8.2-pre6, Minecraft 1.8.4, Minecraft 1.8.7, Minecraft 15w32c, Minecraft 15w35c, Minecraft 15w35e, Minecraft 15w36d, Minecraft 15w39c, Minecraft 15w41b, Minecraft 15w43c, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47c, Minecraft 15w49a, Minecraft 1.8.9, Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w42a, Minecraft 1.11.2, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w08b, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w16a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w21b, Minecraft 18w22c, Minecraft 1.13-pre1
    • Confirmed

      The bug

      Triggers

      • toggling fullscreen
      • resizing the window
      • alt-tabbing out of the game in fullscreen (as of 17w43+)

      Results

      • Changing text in most text boxes then will revert the text. Exceptions are naming (not renaming) a world, entering a seed and writing on a sign.
      • also resets the scroll bars in the statistics menu and returns you to the "General" tab.
      • disables most of a command block interface (as of 17w43+)

      How to reproduce

      1. Press 't' to bring up the console
      2. Type something but don't send it
      3. Toggle fullscreen or resize the window
      4. The text disappears, or reverts to nothing when it should remain

      Code analysis

      from marcono1234:

      The reason for this is that the private void resize(int width, int height) method of the net.minecraft.client.Minecraft class (MCP names for Minecraft 1.8) calls the public void onResize(Minecraft mcIn, int width, int height) method of the net.minecraft.client.gui.GuiScreen class. This method however is a method that creates (not updates) the GUI. A partial fix would be to have the private void resize(int width, int height) method call some kind of updating method only and passing the width and height. Additionally textboxes could have an anonymous class that calculates the position based on the attributes of the screen it is in.

            rherlitz Rikard Herlitz
            Sonicwave [Mod] Sonicwave
            Votes:
            85 Vote for this issue
            Watchers:
            26 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: