longturn / freeciv21

Develop your civilization from humble roots to a global empire
GNU General Public License v3.0
214 stars 39 forks source link

Can't select units in the last row when there are more than 12 on a tile #2285

Closed lmoureaux closed 1 month ago

lmoureaux commented 1 month ago

Describe the bug When there are more than 12 units on a tile, the units in the last row of the unit chooser popup cannot be selected

To Reproduce Steps to reproduce the behavior:

  1. Stack 20 units outside a city, or in an allied city
  2. Click on the tile
  3. Scroll down to the bottom
  4. Try to click on some unit
  5. See it's impossible because the scroll position isn't maintained

Expected behavior It's possible to select any unit on a tile is possible.

Platform and version (please complete the following information):