1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 12:27:46 +08:00

Merge pull request #14998 from peppy/random-seed-max-input-length

Fix weird textbox behaviour when entering a random mod seed overflowing int backing
This commit is contained in:
Dan Balasescu 2021-10-08 16:36:45 +09:00 committed by GitHub
commit 7c9e7e2669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ namespace osu.Game.Overlays.Settings
{
numberBox = new OutlinedNumberBox
{
LengthLimit = 9, // limited to less than a value that could overflow int32 backing.
Margin = new MarginPadding { Top = 5 },
RelativeSizeAxes = Axes.X,
CommitOnFocusLost = true