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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user