Prevent thing flags window (when finding) from being too small

This commit is contained in:
spherallic 2023-04-11 11:47:29 +02:00
parent 5aa089590b
commit 7c05fa7787

View file

@ -55,6 +55,8 @@ namespace CodeImp.DoomBuilder.Windows
if(flagswidth != newflagswidth) this.Width += (newflagswidth - flagswidth);
if(flagsheight != newflagsheight) this.Height += (newflagsheight - flagsheight);
if (this.Width < 224) this.Width = 224; // prevent window from being too small to fit OK/Cancel buttons
// Parse the value string and check the boxes if necessary
if (!string.IsNullOrEmpty(value.Trim()))
{