From 3e1d3fe183fed5f596d27b187740429007f9399c Mon Sep 17 00:00:00 2001 From: ericek111 Date: Sat, 24 Oct 2026 01:11:18 +0000 Subject: [PATCH] Restore the entry window's saved width The entry window sizes its height to its content, and Place skipped the saved size for any window that sizes itself on either side. Co-Authored-By: Claude Sonnet 5.5 --- src/Nonemm.App/Windows/EntryWindow.Operators.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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; } }