diff --git a/src/Nonemm.App/Windows/EntryWindow.Operators.cs b/src/Nonemm.App/Windows/EntryWindow.Operators.cs index f0ef77c..c2de6a7 100644 --- a/src/Nonemm.App/Windows/EntryWindow.Operators.cs +++ b/src/Nonemm.App/Windows/EntryWindow.Operators.cs @@ -130,11 +130,17 @@ public sealed partial class EntryWindow return; } window.Position = new PixelPoint(where.X, where.Y); - // a window that sizes itself to what is in it is left the size it wants - if (window.CanResize && window.SizeToContent == SizeToContent.Manual - && where.Width > 0 && where.Height > 0) + // a side that sizes itself to what is in it is left the size it wants + if (!window.CanResize) + { + return; + } + if (!window.SizeToContent.HasFlag(SizeToContent.Width) && where.Width > 0) { window.Width = where.Width; + } + if (!window.SizeToContent.HasFlag(SizeToContent.Height) && where.Height > 0) + { window.Height = where.Height; } }