[MC-258] Most text boxes / chat / scroll bars revert when the window changes size, fullscreen mode is toggled, or fullscreened game is tabbed into Created: 24/Oct/12  Updated: 27/Jan/21  Resolved: 18/Jun/18

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: 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
Fix Version/s: Minecraft 1.13-pre3

Type: Bug
Reporter: [Mod] Sonicwave Assignee: Rikard Herlitz
Resolution: Fixed Votes: 85
Labels: box, resize, revert, server, text, window

Issue Links:
Duplicate
is duplicated by MC-7885 Typing in a text box then altering sc... Resolved
is duplicated by MC-9521 Resizing screen removes any text writ... Resolved
is duplicated by MC-10000 Text vanishes on resize Resolved
is duplicated by MC-14894 Text disappears when you resize the w... Resolved
is duplicated by MC-15993 Minimizing While in Anvil Resolved
is duplicated by MC-16130 Choosing flatworld preset in windowed... Resolved
is duplicated by MC-17377 Text Fields Lose Changes After Resizing Resolved
is duplicated by MC-25938 Resizing game window loses text box c... Resolved
is duplicated by MC-29295 Minimising the Minecraft client remov... Resolved
is duplicated by MC-30385 Resource packs revert when window res... Resolved
is duplicated by MC-30394 Resource Pack will change reset its o... Resolved
is duplicated by MC-30896 leaving or changing windows deletes t... Resolved
is duplicated by MC-31101 When typing a command, if i minimize ... Resolved
is duplicated by MC-35483 Resizing the game window drops unsave... Resolved
is duplicated by MC-44170 When i resize the direct connect wind... Resolved
is duplicated by MC-49380 Commands erase when resizing window w... Resolved
is duplicated by MC-55657 "Create New World" button in "Create ... Resolved
is duplicated by MC-63599 Pressing F11 while in scrolled down i... Resolved
is duplicated by MC-63918 Maximixe direct conect bug Resolved
is duplicated by MC-68314 Creative Search Bar Clears when enter... Resolved
is duplicated by MC-71957 Resetting fields with Add Server Resolved
is duplicated by MC-75559 Chat/Command window loses data on ful... Resolved
is duplicated by MC-76001 "Loading world" text disappears when ... Resolved
is duplicated by MC-78975 Chat cleared when reformatting window Resolved
is duplicated by MC-81014 Minecraft Text Disappear Resolved
is duplicated by MC-81146 Text in chat bar clears when resizing... Resolved
is duplicated by MC-82588 add server address - f11 deletes input Resolved
is duplicated by MC-84559 Editing a command block and then chan... Resolved
is duplicated by MC-85445 Chat box clears when window is resized Resolved
is duplicated by MC-87753 bugs with commandblocks and /summon Resolved
is duplicated by MC-87813 Command Block buttons become unavaila... Resolved
is duplicated by MC-88121 bugs about commandblock UI Resolved
is duplicated by MC-88122 bugs about commandblock UI Resolved
is duplicated by MC-88234 Creative search disappears when windo... Resolved
is duplicated by MC-88836 Command block don't show command afte... Resolved
is duplicated by MC-89532 The Text Issue Resolved
is duplicated by MC-91309 Command block text disappears when sc... Resolved
is duplicated by MC-91667 Server textbox bug Resolved
is duplicated by MC-93112 Commandblock bug Resolved
is duplicated by MC-94854 Text fields "add server" clear when r... Resolved
is duplicated by MC-95027 Command block GUI failed after adjust... Resolved
is duplicated by MC-95329 Input field for IP address resets upo... Resolved
is duplicated by MC-96702 Exiting fullscreen deletes chat and c... Resolved
is duplicated by MC-98576 Commands in command blocks lost when ... Resolved
is duplicated by MC-98762 F11 - Command block Command missing Resolved
is duplicated by MC-100242 Chat line get cleared when setting ga... Resolved
is duplicated by MC-100634 command blocks emptied after resizing... Resolved
is duplicated by MC-102787 Command block's commands disappear af... Resolved
is duplicated by MC-106349 Command Block Glitches when Changing ... Resolved
is duplicated by MC-114799 A command block's command is deleted ... Resolved
is duplicated by MC-118322 switch between Fullscreen mode= text ... Resolved
is duplicated by MC-118762 Statistics Tab resets after resize Resolved
is duplicated by MC-120196 Maximizing the window while loading a... Resolved
is duplicated by MC-121470 Losing game focus in the statistics s... Resolved
is duplicated by MC-122818 Text in open command block gets erase... Resolved
is duplicated by MC-123137 Chat clears when switching windows Resolved
is duplicated by MC-123911 Switching windows with something in t... Resolved
is duplicated by MC-124609 Chat/Commands deleted when game minim... Resolved
is duplicated by MC-125531 Resizing the game window will clear a... Resolved
is duplicated by MC-129174 Commands get erased on exiting full s... Resolved
is duplicated by MC-129452 Chat box cleared when Minecraft windo... Resolved
is duplicated by MC-131842 Un-fullscreening takes away chat text... Resolved
is duplicated by MC-3242 When typing in windowed, and switchin... Resolved
is duplicated by MC-3420 IP's text disappear of textbox when y... Resolved
is duplicated by MC-3968 When resizing the window when you hav... Resolved
is duplicated by MC-4034 Server adres - \ resize bug Resolved
is duplicated by MC-5000 Text field contents removed on fullsc... Resolved
Relates
relates to MC-62366 Selected singleplayer world is unsele... Reopened
relates to MC-54551 Resizing window while in Customized W... Resolved
relates to MC-2835 Resizing the Minecraft window while d... Resolved
relates to MC-66652 Messeges from previous tab completion... Resolved
relates to MC-94490 Resizing the game enables all GUI ele... Resolved
relates to MC-213104 Statistics tab resets when resizing t... Resolved
relates to MCL-1324 Launcher forced resize on login with ... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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.



 Comments   
Comment by [Mod] violine1101 [ 27/Jan/21 ]

also resets the scroll bars in the statistics menu and returns you to the "General" tab.

That still appears to be the case, I've created a new bug report about that here: MC-213104

Comment by Rikard Herlitz [ 18/Jun/18 ]

Thank you! I've fixed those as well now

Comment by Tedstar (Curtis Anderson) [ 17/Jun/18 ]

Awesome! Oh and I just though to check the structure block; the name field for all four versions of the GUI is also affected. Not sure about the controls, don't really know how the structure block works. ¯_(ツ)_/¯

Edit: Ok I was figuring out how the structure block works. Changing window size resets all modified text fields. It also appears to disable the text fields. Buttons keep their settings even when changed.

Comment by Rikard Herlitz [ 17/Jun/18 ]

Tedstar Thanks. I've fixed these too and they should work in the next update!

Comment by Tedstar (Curtis Anderson) [ 15/Jun/18 ]

@rherlitz
The text in the "Select a Preset" screen (Create New World > More World Options... > World Type: Superflat > Customize > Presets) reverts when the window changes size in pre2. It may be a separate issue though because it's perfectly fine for alt-tab out of and back into the window.

Also the recipe book search field goes blank on resize (but not alt-tab) for all three variants (inventory, crafting table, and furnace).

Comment by Rikard Herlitz [ 15/Jun/18 ]

This is fixed for all text fields, but not scroll bars (pre2)

(let me know if i missed any)

Comment by bugmancx [ 20/May/18 ]

Confirmed for 18w20c

Comment by _Spitz [ 15/Feb/18 ]

Confirmed for 18w07b

Comment by [Mod] Sonicwave [ 07/Feb/18 ]

Confirmed for 18w05a

Comment by Aaron Rhodes [ 29/Jan/18 ]

confirmed in 18w03b for command block gui.

Comment by CyanEmber [ 12/Dec/17 ]

Confirmed for 17w50a.

Comment by [Mod] tryashtar [ 22/Nov/17 ]

It will also, for example, enable the "create world" button when it's supposed to be disabled (if there's no provided world name).

Comment by Fabian Röling [ 04/Nov/17 ]

Is this still caused by what's in the code analysis?

Comment by [Mod] tryashtar [ 04/Nov/17 ]

As MC-121470 was marked as duplicating this, I'd like to add the following information:

  • This bug now also resets the scroll bars in the statistics menu and returns you to the "General" tab.
  • This bug now occurs when the user alt-tabs out of the game in fullscreen.
  • This bug now also disables most of a command block interface.
Comment by Joeri [ 18/May/17 ]

Confirmed for all 1.12 snapshots and 1.12-pre1, 1.12-pre2 and 1.12-pre3

Comment by nicolas abrego [ 19/Apr/17 ]

i hate this bug, maybe i'm writing a long command in a small window because im seeing the wiki to see how do i write te command, and when i want to fullscreen the game to continue writing the entire commands dissapear

Comment by [Helper] Misode [ 22/Dec/16 ]

Confirmed for 1.11.2

Comment by Klorkson Noksu [ 20/Oct/16 ]

Can confirm for all 1.11 snapshots

Comment by [Mod] Neko [ 21/Aug/16 ]

1.10.2 is already listed.

Comment by user-2a4c8 (Inactive) [ 21/Aug/16 ]

Confirmed 1.10.2

Comment by Fabian Röling [ 22/Jun/16 ]

Confirmed for 1.10.1.

Comment by IStripForPotatoe [ 08/Jun/16 ]

Confirmed for 1.10

Comment by IStripForPotatoe [ 07/Jun/16 ]

Confirmed for Pre2 1.10

Comment by IStripForPotatoe [ 02/Jun/16 ]

Confirmed for Pre 1.10

Comment by Fenhl (Max Dominik Weber) [ 24/May/16 ]

Affects 16w20a and OS X 10.11.5.

Comment by Fenhl (Max Dominik Weber) [ 04/Apr/16 ]

Affects 1.9.2.

Comment by Fenhl (Max Dominik Weber) [ 17/Mar/16 ]

Affects 1.9.1-pre3.

Comment by Fenhl (Max Dominik Weber) [ 27/Feb/16 ]

Affects 1.9-pre4.

Comment by Fenhl (Max Dominik Weber) [ 25/Feb/16 ]

Affects 1.9-pre3.

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1

Comment by Fenhl (Max Dominik Weber) [ 16/Feb/16 ]

Affects 16w07b.

Comment by Fenhl (Max Dominik Weber) [ 15/Feb/16 ]

Affects 16w07a.

Comment by Fenhl (Max Dominik Weber) [ 10/Feb/16 ]

Affects 16w06a.

Comment by Marcono1234 [ 06/Feb/16 ]

Confirmed for

  • 16w05b

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 func_175273_b(Minecraft mcIn, int p_175273_2_, int p_175273_3_) 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.

Could you please link to this comment in the description

Comment by Koi YTP [ 06/Feb/16 ]

Never seen, probably because I play mostly 1.8.9

Comment by Fenhl (Max Dominik Weber) [ 29/Jan/16 ]

Affects 16w04a.

Comment by Fenhl (Max Dominik Weber) [ 28/Jan/16 ]

Affects 16w03a.

Comment by Fenhl (Max Dominik Weber) [ 14/Jan/16 ]

Affects 16w02a.

Comment by Fenhl (Max Dominik Weber) [ 17/Dec/15 ]

Affects 15w51b.

Comment by Fenhl (Max Dominik Weber) [ 16/Dec/15 ]

Affects 15w50a.

Comment by Fenhl (Max Dominik Weber) [ 03/Dec/15 ]

Affects 15w49a, tested with chat and Creative inventory.

Comment by Stefan van den Wijngaert [ 21/Nov/15 ]

Confirmed in 15w47c for Command blocks, Chat, Anvil and Inventory search bar.

Comment by Fenhl (Max Dominik Weber) [ 12/Nov/15 ]

Affects 15w46a.

Comment by Fenhl (Max Dominik Weber) [ 09/Nov/15 ]

Affects 15w45a.

Comment by PancakeMan77 [ 28/Aug/15 ]

Can confirm for all 1.9 snapshots.

Comment by Tobias Berner [ 29/Jun/15 ]

Something similar to this also happens in the statistics menu, being scrolled down on the first page or being on another page and resizing puts you back to the first page again.

Comment by ohnx [ 09/Jun/15 ]

Confirmed for 1.8.5, 1.8.6, and 1.8.7

Comment by TGS [ 03/May/15 ]

Confirmed for 1.8.4

Comment by Amr Satrio [ 01/Feb/15 ]

Confirmed for 1.8.2-pre6

Comment by KingSupernova [ 29/Jan/15 ]

Confirmed for 1.8.2-pre5.

Comment by [Mod] Sonicwave [ 28/Nov/14 ]

Confirmed for 1.8.1.

Comment by [Mod] Sonicwave [ 21/Oct/14 ]

Still in 1.8.1-pre2 (just deleted a nether superflat code I was working on ).

Comment by [Mod] Sonicwave [ 16/Oct/14 ]

Also affects 1.8.1-pre1.

Comment by [Mod] Sonicwave [ 09/Oct/14 ]

Confirmed in 1.8.

Comment by ggxl [ 09/Jun/14 ]

I think I found a different manifestation of this bug in the Command Block GUI. The difference was that I already saved a command inside (which would have remained if I didn't save my changes), and I pressed F11 and the old text was there.

I wasn't ADDING text, note, I was using the backspace key when I slipped and went into fullscreen. I'm also using 14w21b.

Comment by Marcus McDermand [ 09/Mar/14 ]

Still an issue in 14w10c

Comment by Omnimetatron [ 17/Feb/14 ]

Came across this issue in 14w07a today.

Comment by Ladislav Bielko [ 09/Feb/14 ]

Still in 14w06b. Looks like its a pretty hard bug to be fixed.

Comment by Deleted account [ 19/Jan/14 ]

This is still an issue in Minecraft version 14w03b.

Comment by Fenhl (Max Dominik Weber) [ 22/Nov/13 ]

Affects snapshot 13w47c.

Comment by GoodKingFilms [ 26/Oct/13 ]

still in 1.7.2

Comment by Fenhl (Max Dominik Weber) [ 06/Sep/13 ]

Affects snapshot 13w36a.

Comment by Kevin Gut [ 10/Jul/13 ]

yes, still happens in 1.6.2

Comment by Kevin Gut [ 01/Jul/13 ]

still happens in 1.6.1. At least with the chat box.

Comment by Fenhl (Max Dominik Weber) [ 25/Jun/13 ]

Still happens in 13w26a.

Comment by Fenhl (Max Dominik Weber) [ 12/Apr/13 ]

Also happens in the “Edit Server Info” screen (or at least when adding a new server).

Comment by Kevin Gut [ 17/Mar/13 ]

Still happens with the chat in 1.5

Comment by [Mod] Ezekiel (ezfe) [ 12/Jan/13 ]

It is partially fixed, I think. For instance, the seed text file doesn't reset when toggling, but the chat field does.

Comment by Kevin Gut [ 11/Jan/13 ]

Seems fixed in 1.4.7

Comment by Kumasasa [ 16/Nov/12 ]

Maybe related to grayed out buttons

Comment by Kevin Gut [ 25/Oct/12 ]

This also Happens with Text Boxes in the Main Menu, the "Preset" Textbox for superflat Worlds for example

Comment by [Mod] Ezekiel (ezfe) [ 25/Oct/12 ]

It has always been present as far as I know

Comment by Gravity [ 24/Oct/12 ]

This does indeed happen as described. Not sure if it was present in previous versions, but it does exist in 1.4.2-PRE

Generated at Sun Jan 12 11:50:25 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.