mojira.dev
MC-232719

The scroll bar within the singleplayer menu doesn't reset its position to the top of the list when searching for worlds

The Bug:

The scroll bar within the singleplayer menu doesn't reset its position to the top of the list when searching for worlds. This can occasionally cause the scroll bar to appear outside of its boundaries.

I have a bunch of worlds and I tried to find one world I hadn't played in a while. I couldn't find it, so I searched for the name of the world. After I typed in the first letter I noticed that the scroll bar was bugged; the scroll bar was overlapping with the bottom part of the menu. After you scroll one time, the scroll bar will behave as usual.

Steps to Reproduce:

  1. Have multiple worlds within the singleplayer menu in order to make the scroll bar appear.

  2. Scroll down to the bottom of the list.

  3. Begin typing the name of any world within the "Select World" box.

  4. Take note of how the scroll bar within the singleplayer menu doesn't reset its position to the top of the list when searching for worlds.

Observed Behavior:

The scroll bar doesn't reset its position to the top of the list. This occasionally causes it to appear outside of its boundaries. This can also cause search results to not appear or to only be partially visible until the scroll bar's position is reset.

Expected Behavior:

The scroll bar would reset its position to the top of the list.

Linked issues

Attachments

Comments 4

Did you happen to resize your window at all when this issue occurred? (MC-158271)

I did some investigation, it seems to be caused by the scroll bar position not being reset after searching. If you scroll down, then search something that has a list shorter than where you scrolled to, the scroll bar will be out of bounds since it is not reset to the top.

The window resizing glitch is unrelated- hope this helps!

 

Edit: The scroll bar will return to the bounds when you scroll once.

Happening in 1.19 Pre-release 5 as well. Scrolling down the world list and searching makes the results go off-screen until I scroll the mouse.

Hi there! I was able to confirm the behavior you described. I've made some amendments to this ticket to make it clear as to what the problem is and how you can go about recreating the issue. I hope this is okay. 🙂

Sebastian Weidtler

Panda4994

Confirmed

UI

1.17.1, 1.19.2, 1.19.3 Pre-release 2, 1.20.1

23w42a

Retrieved