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 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 01:11:18 +00:00
co-authored by Claude Sonnet 5.5
parent 29d3a0f016
commit 3e1d3fe183
@@ -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;
}
}