Namdrib / java-minesweeper

A Java version of Mineseweeper.
MIT License
0 stars 0 forks source link

Best Times should not be resizable #23

Open Namdrib opened 4 years ago

Namdrib commented 4 years ago

Currently, if an extremely long name is put in for best times, it elongates the window to try to fit the whole thing in. A side-effect of this is that when the scores are reset while viewing an elongated window, the window still stays with the larger size.

An extremely long name should instead flow off the end of the window and be partially invisible, such as visible here (original WinXP minesweeper running on Linux, so theme is a bit off):

image

Namdrib commented 4 years ago

Current state when a long name is used

And after clicking Reset Scores

However, opening Best Times again after resetting will have the normal-size window again.